DI-Guy SDK Documentation  13.8
diguyDx9GraphicsMesh.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2024 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
6 /*****************************************************************************
7  **
8  *2 diguyDx9GraphicsMesh
9  **
10  ** This class is part of the DI-Guy Graphics API. It overrides the class
11  ** diguyGraphicsMesh. Detailed documentation is in the implementation
12  ** file documentation <a href="diguyDx9GraphicsMesh.cpp.html">here</a>.
13  */
14 
15 #ifndef diguyDx9GraphicsMesh_h__
16 #define diguyDx9GraphicsMesh_h__
17 
18 #include <diguyGraphicsMesh.h>
19 
20 struct ID3DXMesh;
21 struct IDirect3DVertexBuffer9;
22 struct IDirect3DIndexBuffer9;
23 struct IDirect3DVertexDeclaration9;
24 
25 
26 /****************************************************************************/
28 {
29 
30 public:
31 
32  diguyDx9GraphicsMesh(void* internal_data);
33 
34  virtual void build();
35  virtual void unbuild();
36  virtual void draw(diguyDrawCallData * data);
37 
38 protected:
39 
44 
45  IDirect3DVertexBuffer9* m_pVertexBuffer;
46  IDirect3DIndexBuffer9* m_pIndexBuffer;
47 
48  IDirect3DVertexDeclaration9* m_vertexDecl;
49 };
50 
51 
57 
58 
59 #endif /* diguyDx9GraphicsMesh_h__ */
60 
Definition: diguyDx9GraphicsMesh.h:26
virtual void draw(diguyDrawCallData *data)
This function will be called by DI-Guy when the mesh should be drawn.
diguyGraphicsMesh * diguyDx9GraphicsMesh_create_func(void *internal_data)
Create function declaration.
virtual void build()
This function will be called by DI-Guy when it is time for a renderer-specific mesh object to be crea...
A class that represents a shared mesh object.
Definition: diguyGraphicsMesh.h:87
int m_is_skinned_mesh
Variables for data generated during the Build Stage.
Definition: diguyDx9GraphicsMesh.h:42
A struct that represents the information that diguy puts together for an immediate mode draw call...
Definition: diguyGraphicsMesh.h:37
IDirect3DVertexDeclaration9 * m_vertexDecl
Definition: diguyDx9GraphicsMesh.h:47
diguyDx9GraphicsMesh(void *internal_data)
virtual void unbuild()
This function will be called by DI-Guy when it is time for a renderer-specific mesh object to be dest...
IDirect3DVertexBuffer9 * m_pVertexBuffer
Definition: diguyDx9GraphicsMesh.h:44
IDirect3DIndexBuffer9 * m_pIndexBuffer
Definition: diguyDx9GraphicsMesh.h:45