DI-Guy SDK Documentation  13.2
diguyOglGraphicsMesh2_1.h
Go to the documentation of this file.
1 #ifndef __diguyOglGraphicsMesh_H
2 #define __diguyOglGraphicsMesh_H
3 
4 /*****************************************************************************
5  **
6  *2 diguyOglGraphicsMesh
7  **
8  ** This class is part of the DI-Guy Graphics API. It overrides the class
9  ** diguyGraphicsMesh. Detailed documentation is in the implementation
10  ** file documentation <a href="diguyOglGraphicsMesh.cpp.html">here</a>.
11  */
12 
13 #include "ogl_headers.h"
14 
15 #include <diguyGraphicsMesh.h>
16 class diguyGraphicsVertexData;
17 
18 
19 /****************************************************************************/
21 {
22 
23 public:
24 
25  diguyOglGraphicsMesh(void* internal_data);
26 
27  virtual void build();
28  virtual void unbuild();
29  virtual void draw(diguyDrawCallData* draw_data);
30 
31 protected:
32 
37  int m_has_tangents;
38 
39  GLuint m_vertex_buffer;
40  GLuint m_index_buffer;
41 
42  GLenum m_gl_index_type;
43 
44 };
45 
46 
52 
53 #endif
GLuint m_index_buffer
Definition: diguyOglGraphicsMesh.h:57
diguyOglGraphicsMesh(void *internal_data)
Definition: diguyOglGraphicsMesh.cpp:45
This class is part of the DI-Guy Graphics API.
Definition: diguyOglGraphicsMesh.h:25
int m_is_skinned_mesh
Variables for data generated during the Build Stage.
Definition: diguyOglGraphicsMesh.h:53
diguyGraphicsMesh * diguyOglGraphicsMesh_create_func(void *internal_data)
Create function declaration.
Definition: diguyOglGraphicsMesh.cpp:625
A class that represents a shared mesh object.
Definition: diguyGraphicsMesh.h:80
virtual void unbuild()
This function will be called by DI-Guy when it is time for a renderer-specific mesh object to be dest...
Definition: diguyOglGraphicsMesh.cpp:236
GLuint m_vertex_buffer
Definition: diguyOglGraphicsMesh.h:56
A struct that represents the information that diguy puts together for an immediate mode draw call...
Definition: diguyGraphicsMesh.h:42
GLenum m_gl_index_type
Definition: diguyOglGraphicsMesh.h:60
int m_has_tangents
Definition: diguyOglGraphicsMesh.h:54
virtual void build()
This function will be called by DI-Guy when it is time for a renderer-specific mesh object to be crea...
Definition: diguyOglGraphicsMesh.cpp:84
virtual void draw(diguyDrawCallData *draw_data)
This function will be called by DI-Guy when the mesh should be drawn.
Definition: diguyOglGraphicsMesh.cpp:305