DI-Guy SDK Documentation  13.8
diguyOglGraphicsMesh2_1.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2024 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
6 #pragma once
7 
8 /*****************************************************************************
9  **
10  *2 diguyOglGraphicsMesh
11  **
12  ** This class is part of the DI-Guy Graphics API. It overrides the class
13  ** diguyGraphicsMesh. Detailed documentation is in the implementation
14  ** file documentation <a href="diguyOglGraphicsMesh.cpp.html">here</a>.
15  */
16 
17 #include "ogl_headers.h"
18 
19 #include <diguyGraphicsMesh.h>
20 class diguyGraphicsVertexData;
21 
22 
23 /****************************************************************************/
25 {
26 
27 public:
28 
29  diguyOglGraphicsMesh(void* internal_data);
30 
31  virtual void build();
32  virtual void unbuild();
33  virtual void draw(diguyDrawCallData* draw_data);
34 
35 protected:
36 
41  int m_has_tangents;
42 
43  GLuint m_vertex_buffer;
44  GLuint m_index_buffer;
45 
46  GLenum m_gl_index_type;
47 
48 };
49 
50 
GLuint m_index_buffer
Definition: diguyOglGraphicsMesh.h:66
diguyOglGraphicsMesh(void *internal_data)
This class is part of the DI-Guy Graphics API.
Definition: diguyOglGraphicsMesh.h:30
int m_is_skinned_mesh
Variables for data generated during the Build Stage.
Definition: diguyOglGraphicsMesh.h:62
diguyGraphicsMesh * diguyOglGraphicsMesh_create_func(void *internal_data)
Create function declaration.
A class that represents a shared mesh object.
Definition: diguyGraphicsMesh.h:87
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...
GLuint m_vertex_buffer
Definition: diguyOglGraphicsMesh.h:65
A struct that represents the information that diguy puts together for an immediate mode draw call...
Definition: diguyGraphicsMesh.h:37
GLenum m_gl_index_type
Definition: diguyOglGraphicsMesh.h:70
int m_has_tangents
Definition: diguyOglGraphicsMesh.h:63
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...
virtual void draw(diguyDrawCallData *draw_data) override
This function will be called by DI-Guy when the mesh should be drawn.