DI-Guy SDK Documentation  13.7.1
diguyDx9GraphicsMesh.h
Go to the documentation of this file.
1 
2 /*****************************************************************************
3  **
4  *2 diguyDx9GraphicsMesh
5  **
6  ** This class is part of the DI-Guy Graphics API. It overrides the class
7  ** diguyGraphicsMesh. Detailed documentation is in the implementation
8  ** file documentation <a href="diguyDx9GraphicsMesh.cpp.html">here</a>.
9  */
10 
11 #ifndef diguyDx9GraphicsMesh_h__
12 #define diguyDx9GraphicsMesh_h__
13 
14 #include <diguyGraphicsMesh.h>
15 
16 struct ID3DXMesh;
17 struct IDirect3DVertexBuffer9;
18 struct IDirect3DIndexBuffer9;
19 struct IDirect3DVertexDeclaration9;
20 
21 
22 /****************************************************************************/
24 {
25 
26 public:
27 
28  diguyDx9GraphicsMesh(void* internal_data);
29 
30  virtual void build();
31  virtual void unbuild();
32  virtual void draw(diguyDrawCallData * data);
33 
34 protected:
35 
40 
41  IDirect3DVertexBuffer9* m_pVertexBuffer;
42  IDirect3DIndexBuffer9* m_pIndexBuffer;
43 
44  IDirect3DVertexDeclaration9* m_vertexDecl;
45 };
46 
47 
53 
54 
55 #endif /* diguyDx9GraphicsMesh_h__ */
56 
Definition: diguyDx9GraphicsMesh.h:22
virtual void draw(diguyDrawCallData *data)
This function will be called by DI-Guy when the mesh should be drawn.
Definition: diguyDx9GraphicsMesh.cpp:263
diguyGraphicsMesh * diguyDx9GraphicsMesh_create_func(void *internal_data)
Create function declaration.
Definition: diguyDx9GraphicsMesh.cpp:343
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:38
A struct that represents the information that diguy puts together for an immediate mode draw call...
Definition: diguyGraphicsMesh.h:37
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: diguyDx9GraphicsMesh.cpp:82
IDirect3DVertexDeclaration9 * m_vertexDecl
Definition: diguyDx9GraphicsMesh.h:43
diguyDx9GraphicsMesh(void *internal_data)
4 Header files and forward declarations
Definition: diguyDx9GraphicsMesh.cpp:46
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: diguyDx9GraphicsMesh.cpp:229
IDirect3DVertexBuffer9 * m_pVertexBuffer
Definition: diguyDx9GraphicsMesh.h:40
IDirect3DIndexBuffer9 * m_pIndexBuffer
Definition: diguyDx9GraphicsMesh.h:41