X-Git-Url: http://git.mutantstargoat.com?p=demo;a=blobdiff_plain;f=src%2Fmesh.h;h=84cbbcb6f1d0337bbab549d0fb7f7b59a335a2b8;hp=82f5c48199947358106fe341a483548871449ca0;hb=47982b199010496e34eefb95044275fb231cba18;hpb=243eb502c5dc70e586a9e81815234069bf623480 diff --git a/src/mesh.h b/src/mesh.h index 82f5c48..84cbbcb 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,8 +25,6 @@ public: std::vector tex_coords; std::string name; - unsigned int mat_idx; - Mesh(); virtual ~Mesh() = 0; @@ -31,6 +32,8 @@ public: virtual void draw() const = 0; virtual void draw_normals(float scale) const = 0; virtual void update_vertex_data() = 0; + virtual void transform(const Mat4 &mat); + virtual void invalidate(); }; #endif // MESH_H_ \ No newline at end of file