X-Git-Url: http://git.mutantstargoat.com?a=blobdiff_plain;f=src%2Fopengl%2Fmesh-gl.h;h=ca4c0580d2ec21770c999d22f01467a408889ec4;hb=8d1aef17df1bf15491ce4fd35242adcd58a9c411;hp=78d415a54652b81ce8f45ba5bd42986bc79f4e79;hpb=fcd6773bc770425ede4b47a84eef7cc78342542c;p=demo diff --git a/src/opengl/mesh-gl.h b/src/opengl/mesh-gl.h index 78d415a..ca4c058 100644 --- a/src/opengl/mesh-gl.h +++ b/src/opengl/mesh-gl.h @@ -18,6 +18,10 @@ private: void update_vbo(); + /* used by draw_normals to debug stuff: */ + mutable unsigned int nvao; + mutable unsigned int nvbo; + public: MeshGL(); MeshGL(const MeshGL &mesh); @@ -26,7 +30,8 @@ public: virtual ~MeshGL(); virtual void draw() const override; - virtual void update_vertex_data() override; + virtual void draw_normals(float scale) const override; + virtual bool update_vertex_data() override; void destroy_vbo(); };