projects
/
demo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
quick backup
[demo]
/
src
/
opengl
/
mesh-gl.h
diff --git
a/src/opengl/mesh-gl.h
b/src/opengl/mesh-gl.h
index
912257c
..
78d415a
100644
(file)
--- a/
src/opengl/mesh-gl.h
+++ b/
src/opengl/mesh-gl.h
@@
-9,11
+9,15
@@
private:
unsigned int vbo_vertices;
unsigned int vbo_normals;
unsigned int vbo_vertices;
unsigned int vbo_normals;
+ unsigned int vbo_tex_coords;
+
unsigned int ibo;
int num_vertices;
int num_indices;
unsigned int ibo;
int num_vertices;
int num_indices;
+ void update_vbo();
+
public:
MeshGL();
MeshGL(const MeshGL &mesh);
public:
MeshGL();
MeshGL(const MeshGL &mesh);
@@
-21,10
+25,9
@@
public:
virtual ~MeshGL();
virtual ~MeshGL();
- // virtual void draw() const override;
+ virtual void draw() const override;
virtual void update_vertex_data() override;
virtual void update_vertex_data() override;
- void update_vbo();
void destroy_vbo();
};
void destroy_vbo();
};