DI-Guy SDK Documentation  13.6
diguyOglGraphicsMesh2_1.h
Go to the documentation of this file.
1 #pragma once
2 
3 /*****************************************************************************
4  **
5  *2 diguyOglGraphicsMesh
6  **
7  ** This class is part of the DI-Guy Graphics API. It overrides the class
8  ** diguyGraphicsMesh. Detailed documentation is in the implementation
9  ** file documentation <a href="diguyOglGraphicsMesh.cpp.html">here</a>.
10  */
11 
12 #include "ogl_headers.h"
13 
14 #include <diguyGraphicsMesh.h>
15 class diguyGraphicsVertexData;
16 
17 
18 /****************************************************************************/
20 {
21 
22 public:
23 
24  diguyOglGraphicsMesh(void* internal_data);
25 
26  virtual void build();
27  virtual void unbuild();
28  virtual void draw(diguyDrawCallData* draw_data);
29 
30 protected:
31 
36  int m_has_tangents;
37 
38  GLuint m_vertex_buffer;
39  GLuint m_index_buffer;
40 
41  GLenum m_gl_index_type;
42 
43 };
44 
45 
GLuint m_index_buffer
Definition: diguyOglGraphicsMesh.h:61
diguyOglGraphicsMesh(void *internal_data)
Definition: diguyOglGraphicsMesh.cpp:48
virtual void build() override
This function will be called by DI-Guy when it is time for a renderer-specific mesh object to be crea...
Definition: diguyOglGraphicsMesh.cpp:83
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:57
virtual void unbuild() override
This function will be called by DI-Guy when it is time for a renderer-specific mesh object to be dest...
Definition: diguyOglGraphicsMesh.cpp:136
diguyGraphicsMesh * diguyOglGraphicsMesh_create_func(void *internal_data)
Create function declaration.
Definition: diguyOglGraphicsMesh.cpp:788
A class that represents a shared mesh object.
Definition: diguyGraphicsMesh.h:95
GLuint m_vertex_buffer
Definition: diguyOglGraphicsMesh.h:60
A struct that represents the information that diguy puts together for an immediate mode draw call...
Definition: diguyGraphicsMesh.h:41
GLenum m_gl_index_type
Definition: diguyOglGraphicsMesh.h:65
int m_has_tangents
Definition: diguyOglGraphicsMesh.h:58
virtual void draw(diguyDrawCallData *draw_data) override
This function will be called by DI-Guy when the mesh should be drawn.
Definition: diguyOglGraphicsMesh.cpp:362