DI-Guy SDK Documentation  13.8
diguyDx11GraphicsMesh.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 #include <diguyGraphicsMesh.h>
9 
10 struct ID3DXMesh;
11 struct ID3D11Buffer;
12 struct ID3D11InputLayout;
13 
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 
27  // Variables for data generated during the Build Stage.
29 
30  ID3D11Buffer* m_pVertexBuffer;
31  ID3D11Buffer* m_pIndexBuffer;
32 
33  ID3D11InputLayout* m_vertexDecl;
34 
35 };
36 
37 
38 // Create function declaration.
39 // Declare a subclass creation function that will be registered with the DI-Guy Graphics API.
ID3D11Buffer * m_pVertexBuffer
Definition: diguyDx11GraphicsMesh.h:30
diguyGraphicsMesh * diguyDx11GraphicsMesh_create_func(void *internal_data)
diguyDx11GraphicsMesh(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...
ID3D11Buffer * m_pIndexBuffer
Definition: diguyDx11GraphicsMesh.h:31
A class that represents a shared mesh object.
Definition: diguyGraphicsMesh.h:87
virtual void draw(diguyDrawCallData *data)
This function will be called by DI-Guy when the mesh should be drawn.
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 struct that represents the information that diguy puts together for an immediate mode draw call...
Definition: diguyGraphicsMesh.h:37
ID3D11InputLayout * m_vertexDecl
Definition: diguyDx11GraphicsMesh.h:33
Definition: diguyDx11GraphicsMesh.h:15
int m_is_skinned_mesh
Definition: diguyDx11GraphicsMesh.h:28