X-Git-Url: http://git.mutantstargoat.com?a=blobdiff_plain;f=src%2Fmesh.h;h=394f46a6000f4e5dde6f28df55c017e6c072aa42;hb=HEAD;hp=ed40f5d7ece57bdfecea9f3a7632026c500b9c66;hpb=713e854b6daf2ec0de8538be1e1eb385a213f36c;p=demo diff --git a/src/mesh.h b/src/mesh.h index ed40f5d..394f46a 100644 --- a/src/mesh.h +++ b/src/mesh.h @@ -15,6 +15,9 @@ enum { }; class Mesh { +protected: + bool vdata_valid; + public: std::vector indices; std::vector vertices; @@ -22,14 +25,15 @@ public: std::vector tex_coords; std::string name; - unsigned int mat_idx; - Mesh(); virtual ~Mesh() = 0; virtual void draw() const = 0; - virtual void update_vertex_data() = 0; + virtual void draw_normals(float scale) const = 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_