DI-Guy SDK Documentation  13.2
diguyDx11GraphicsMesh.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include <diguyGraphicsMesh.h>
5 
6 struct ID3DXMesh;
7 struct ID3D11Buffer;
8 struct ID3D11InputLayout;
9 
10 
15 {
16 
17 public:
18 
19  diguyDx11GraphicsMesh(void* internal_data);
20 
21  virtual void build();
22  virtual void unbuild();
23  virtual void draw(diguyDrawCallData * data);
24 
25 protected:
26 
31 
32  ID3D11Buffer* m_pVertexBuffer;
33  ID3D11Buffer* m_pIndexBuffer;
34 
35  ID3D11InputLayout* m_vertexDecl;
36 };
37 
38 
44 
45 
ID3D11Buffer * m_pVertexBuffer
Definition: diguyDx11GraphicsMesh.h:31
diguyGraphicsMesh * diguyDx11GraphicsMesh_create_func(void *internal_data)
Create function declaration.
Definition: diguyDx11GraphicsMesh.cpp:376
diguyDx11GraphicsMesh(void *internal_data)
Definition: diguyDx11GraphicsMesh.cpp:52
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: diguyDx11GraphicsMesh.cpp:180
ID3D11Buffer * m_pIndexBuffer
Definition: diguyDx11GraphicsMesh.h:32
A class that represents a shared mesh object.
Definition: diguyGraphicsMesh.h:80
virtual void draw(diguyDrawCallData *data)
This function will be called by DI-Guy when the mesh should be drawn.
Definition: diguyDx11GraphicsMesh.cpp:222
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: diguyDx11GraphicsMesh.cpp:89
A struct that represents the information that diguy puts together for an immediate mode draw call...
Definition: diguyGraphicsMesh.h:42
ID3D11InputLayout * m_vertexDecl
Definition: diguyDx11GraphicsMesh.h:34
Definition: diguyDx11GraphicsMesh.h:13
int m_is_skinned_mesh
Variables for data generated during the Build Stage.
Definition: diguyDx11GraphicsMesh.h:29