X-Git-Url: http://git.mutantstargoat.com?a=blobdiff_plain;f=src%2Fmesh.h;h=57165bab83b6e5cecad8f6014d5cda852517371d;hb=77e44c5424bd5e6e7c6a706151fa786a56270e12;hp=6482bde46d291a7f843d1c4d72f1e6251f024121;hpb=46cc932f7ddb0c81f352bc847973dae6b327ebeb;p=demo diff --git a/src/mesh.h b/src/mesh.h index 6482bde..57165ba 100644 --- a/src/mesh.h +++ b/src/mesh.h @@ -15,9 +15,6 @@ enum { }; class Mesh { -private: - // call before draw in gl - virtual void update_vertex_data() = 0; public: std::vector indices; std::vector vertices; @@ -28,10 +25,12 @@ public: std::string name; unsigned int mat_idx; - unsigned int which_mask; Mesh(); virtual ~Mesh() = 0; + + virtual void draw() const = 0; + virtual void update_vertex_data() = 0; }; #endif // MESH_H_ \ No newline at end of file