X-Git-Url: http://git.mutantstargoat.com?p=demo;a=blobdiff_plain;f=src%2Fmesh.h;h=57165bab83b6e5cecad8f6014d5cda852517371d;hp=a7fb32735947227e84b4b17683779e5b55b32d6f;hb=4bc86b416f29b4889075ad5c8dfdb1e11454a6c3;hpb=c0078cdf2aa206287888afa767bf75fa0e81ad15 diff --git a/src/mesh.h b/src/mesh.h index a7fb327..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; @@ -33,6 +30,7 @@ public: virtual ~Mesh() = 0; virtual void draw() const = 0; + virtual void update_vertex_data() = 0; }; #endif // MESH_H_ \ No newline at end of file