projects
/
demo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed mesh bugs
[demo]
/
src
/
opengl
/
mesh-gl.h
diff --git
a/src/opengl/mesh-gl.h
b/src/opengl/mesh-gl.h
index
f935a59
..
ab1ea07
100644
(file)
--- a/
src/opengl/mesh-gl.h
+++ b/
src/opengl/mesh-gl.h
@@
-16,6
+16,11
@@
private:
int num_vertices;
int num_indices;
int num_vertices;
int num_indices;
+ void update_vbo();
+
+protected:
+ virtual void update_vertex_data() override;
+
public:
MeshGL();
MeshGL(const MeshGL &mesh);
public:
MeshGL();
MeshGL(const MeshGL &mesh);
@@
-24,9
+29,7
@@
public:
virtual ~MeshGL();
virtual void draw() const override;
virtual ~MeshGL();
virtual void draw() const override;
- virtual void update_vertex_data() override;
- void update_vbo();
void destroy_vbo();
};
void destroy_vbo();
};