OpenPolygon  1.0.0
OpenPolygon is a Rendering Engine
mesh.h
1 /*
2  Copyright (C) 2014 - 2016 Mutzii
3 
4  This program is free software: you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation, either version 3 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program. If not, see <http://www.gnu.org/licenses/>.
16 
17 */
18 #ifndef MESH_H
19 #define MESH_H
20 
21 #include "index.h"
22 #include "meshdata.h"
23 //#include "IComponent.h" old
24 #include "glvertexarrayobject.h"
25 
26 namespace Engine
27 {
28 
32  class Mesh : public Arch::IComponent , public MeshData
33  {
34 
35  public:
36 
37  explicit Mesh();
38  ~Mesh();
39 
45  void setGLVertexArrayObject( GLVertexArrayObject * vao_object );
46 
53 
54  // OpenGL Draw Calls
55  void Draw(void);
56  void DrawElements( void );
57  void DrawElementsIndirect( int drawcount );
58  void DrawElementsInstanced( int drawcount );
59 
60 
61  /* Component Part */
62  //IComponent<Entity> * mEntityComponent; old
63  //IComponent<Element> * mElementComponent; old
64 
65  private:
66 
67  GLVertexArrayObject * m_vao;
68  };
69 
70 }
71 
72 #endif // MESH_H
GLVertexArrayObject * getVertexArrayObject(void)
getVertexArrayObject
Definition: Mesh.cpp:36
The MeshData - abstract class.
Definition: meshdata.h:32
Definition: element.h:23
The Mesh class.
Definition: mesh.h:32
void setGLVertexArrayObject(GLVertexArrayObject *vao_object)
setGLVertexArrayObject
Definition: Mesh.cpp:31
The GLVertexArrayObject class.
Definition: glvertexarrayobject.h:60