X-Git-Url: http://git.mutantstargoat.com?a=blobdiff_plain;f=src%2Fopengl%2Fmesh-gl.h;h=833e2db7415556ca8216c88d0a5f73d5b00270dc;hb=243eb502c5dc70e586a9e81815234069bf623480;hp=ab1ea07cf726b7ae6d239793da425d93fbb635da;hpb=4bc86b416f29b4889075ad5c8dfdb1e11454a6c3;p=demo diff --git a/src/opengl/mesh-gl.h b/src/opengl/mesh-gl.h index ab1ea07..833e2db 100644 --- a/src/opengl/mesh-gl.h +++ b/src/opengl/mesh-gl.h @@ -18,8 +18,9 @@ private: void update_vbo(); -protected: - virtual void update_vertex_data() override; + /* used by draw_normals to debug stuff: */ + mutable unsigned int nvao; + mutable unsigned int nvbo; public: MeshGL(); @@ -29,8 +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 destroy_vbo(); }; -#endif // MESH_GL_H_ +#endif // MESH_GL_H_ \ No newline at end of file