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);
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