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
/
mesh.h
diff --git
a/src/mesh.h
b/src/mesh.h
index
a7fb327
..
57165ba
100644
(file)
--- a/
src/mesh.h
+++ b/
src/mesh.h
@@
-15,9
+15,6
@@
enum {
};
class Mesh {
};
class Mesh {
-private:
- // call before draw in gl
- virtual void update_vertex_data() = 0;
public:
std::vector<uint16_t> indices;
std::vector<Vec3> vertices;
public:
std::vector<uint16_t> indices;
std::vector<Vec3> vertices;
@@
-33,6
+30,7
@@
public:
virtual ~Mesh() = 0;
virtual void draw() const = 0;
virtual ~Mesh() = 0;
virtual void draw() const = 0;
+ virtual void update_vertex_data() = 0;
};
#endif // MESH_H_
\ No newline at end of file
};
#endif // MESH_H_
\ No newline at end of file