X-Git-Url: http://git.mutantstargoat.com?a=blobdiff_plain;f=src%2Fmesh.h;h=57165bab83b6e5cecad8f6014d5cda852517371d;hb=4bc86b416f29b4889075ad5c8dfdb1e11454a6c3;hp=36a79cd342847bcf19c968c5a1a3bb96043b98db;hpb=64e2adbbab48320b6cd792e515b44cea112a3be4;p=demo diff --git a/src/mesh.h b/src/mesh.h index 36a79cd..57165ba 100644 --- a/src/mesh.h +++ b/src/mesh.h @@ -15,21 +15,22 @@ enum { }; class Mesh { -private: - // call before draw in gl - virtual void update_vertex_data() = 0; public: std::vector indices; std::vector vertices; std::vector normals; std::vector tangents; std::vector 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