el cube
This commit is contained in:
@@ -7,7 +7,9 @@
|
||||
//////////////
|
||||
#include <d3d11.h>
|
||||
#include <directxmath.h>
|
||||
#include <fstream>
|
||||
using namespace DirectX;
|
||||
using namespace std;
|
||||
|
||||
///////////////////////
|
||||
// MY CLASS INCLUDES //
|
||||
@@ -29,12 +31,20 @@ private:
|
||||
XMFLOAT3 normal;
|
||||
};
|
||||
|
||||
struct ModelType
|
||||
{
|
||||
float x, y, z;
|
||||
float tu, tv;
|
||||
float nx, ny, nz;
|
||||
};
|
||||
|
||||
|
||||
public:
|
||||
ModelClass();
|
||||
ModelClass(const ModelClass&);
|
||||
~ModelClass();
|
||||
|
||||
bool Initialize(ID3D11Device*, ID3D11DeviceContext*, char*);
|
||||
bool Initialize(ID3D11Device*, ID3D11DeviceContext*, char*, char*);
|
||||
void Shutdown();
|
||||
void Render(ID3D11DeviceContext*);
|
||||
|
||||
@@ -49,10 +59,15 @@ private:
|
||||
bool LoadTexture(ID3D11Device*, ID3D11DeviceContext*, char*);
|
||||
void ReleaseTexture();
|
||||
|
||||
bool LoadModel(char*);
|
||||
void ReleaseModel();
|
||||
|
||||
private:
|
||||
ID3D11Buffer* m_vertexBuffer, * m_indexBuffer;
|
||||
int m_vertexCount, m_indexCount;
|
||||
TextureClass* m_Texture;
|
||||
|
||||
ModelType* m_model;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user