fixed mesh bugs
[demo] / src / opengl / mesh-gl.h
index f935a59..ab1ea07 100644 (file)
@@ -16,6 +16,11 @@ private:
        int num_vertices;
        int num_indices;
 
+       void update_vbo();
+
+protected:
+       virtual void update_vertex_data() override;
+
 public:
        MeshGL();
        MeshGL(const MeshGL &mesh);
@@ -24,9 +29,7 @@ public:
        virtual ~MeshGL();
 
        virtual void draw() const override;
-       virtual void update_vertex_data() override;
 
-       void update_vbo();
        void destroy_vbo();
 };