projects
/
demo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
some descriptor functions in vkutil - wip
[demo]
/
src
/
mesh.h
diff --git
a/src/mesh.h
b/src/mesh.h
index
82f5c48
..
394f46a
100644
(file)
--- a/
src/mesh.h
+++ b/
src/mesh.h
@@
-15,6
+15,9
@@
enum {
};
class Mesh {
};
class Mesh {
+protected:
+ bool vdata_valid;
+
public:
std::vector<uint16_t> indices;
std::vector<Vec3> vertices;
public:
std::vector<uint16_t> indices;
std::vector<Vec3> vertices;
@@
-22,15
+25,15
@@
public:
std::vector<Vec2> tex_coords;
std::string name;
std::vector<Vec2> tex_coords;
std::string name;
- unsigned int mat_idx;
-
Mesh();
virtual ~Mesh() = 0;
virtual void draw() const = 0;
virtual void draw_normals(float scale) const = 0;
Mesh();
virtual ~Mesh() = 0;
virtual void draw() const = 0;
virtual void draw_normals(float scale) const = 0;
- virtual void update_vertex_data() = 0;
+ virtual bool update_vertex_data() = 0;
+ virtual void transform(const Mat4 &mat);
+ virtual void invalidate();
};
};
-#endif // MESH_H_
\ No newline at end of file
+#endif // MESH_H_