X-Git-Url: http://git.mutantstargoat.com?a=blobdiff_plain;f=src%2Fopengl%2Fmesh-gl.h;h=833e2db7415556ca8216c88d0a5f73d5b00270dc;hb=243eb502c5dc70e586a9e81815234069bf623480;hp=f935a59e615f1a49ae9e5b89342a10bf52d8a1e6;hpb=0da7a98f74d00bfa6cf0d47fd7cf0f687eeba5f6;p=demo diff --git a/src/opengl/mesh-gl.h b/src/opengl/mesh-gl.h index f935a59..833e2db 100644 --- a/src/opengl/mesh-gl.h +++ b/src/opengl/mesh-gl.h @@ -16,6 +16,12 @@ private: 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); @@ -24,10 +30,10 @@ public: virtual ~MeshGL(); 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