quick backup of geosphere generation etc
[demo] / src / mesh.h
index 36a79cd..ed40f5d 100644 (file)
@@ -15,21 +15,21 @@ enum {
 };
 
 class Mesh {
-private:
-       // call before draw in gl
-       virtual void update_vertex_data() = 0;
 public:
        std::vector<uint16_t> indices;
        std::vector<Vec3> vertices;
        std::vector<Vec3> normals;
-       std::vector<Vec3> tangents;
        std::vector<Vec2> tex_coords;
+
        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