X-Git-Url: http://git.mutantstargoat.com?a=blobdiff_plain;f=src%2Fopengl%2Fmesh-gl.h;h=833e2db7415556ca8216c88d0a5f73d5b00270dc;hb=78426c695a2bc5812508806771ed1affa7c0bcf7;hp=912257c51adc6f22cc9735907c5a2c6234168cbc;hpb=64e2adbbab48320b6cd792e515b44cea112a3be4;p=demo diff --git a/src/opengl/mesh-gl.h b/src/opengl/mesh-gl.h index 912257c..833e2db 100644 --- a/src/opengl/mesh-gl.h +++ b/src/opengl/mesh-gl.h @@ -9,11 +9,19 @@ private: unsigned int vbo_vertices; unsigned int vbo_normals; + unsigned int vbo_tex_coords; + unsigned int ibo; int num_vertices; int num_indices; + void update_vbo(); + + /* used by draw_normals to debug stuff: */ + mutable unsigned int nvao; + mutable unsigned int nvbo; + public: MeshGL(); MeshGL(const MeshGL &mesh); @@ -21,11 +29,11 @@ public: virtual ~MeshGL(); - // virtual void draw() const override; + virtual void draw() const override; + virtual void draw_normals(float scale) const override; virtual void update_vertex_data() override; - void update_vbo(); void destroy_vbo(); }; -#endif // MESH_GL_H_ +#endif // MESH_GL_H_ \ No newline at end of file