Added: assimp implementation
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
#pragma once
|
||||
#include <d3d11.h>
|
||||
#include <DirectXMath.h>
|
||||
#include <string>
|
||||
|
||||
#include "Vertex.h"
|
||||
|
||||
using namespace DirectX;
|
||||
using namespace std;
|
||||
|
||||
class Mesh
|
||||
{
|
||||
@@ -13,10 +17,12 @@ public:
|
||||
void deInit();
|
||||
|
||||
const XMFLOAT4X4& getWorldMatrix() const { return _worldMatrix; }
|
||||
UINT loadMeshFromFile(ID3D11Device* pD3DDevice, string filename);
|
||||
UINT loadDefaultMesh(ID3D11Device* pD3DDevice);
|
||||
|
||||
private:
|
||||
UINT createVertexBuffer(ID3D11Device* pD3DDevice);
|
||||
UINT createIndexBuffer(ID3D11Device* pD3DDevice);
|
||||
UINT createVertexBuffer(ID3D11Device* pD3DDevice, Vertex* vertices);
|
||||
UINT createIndexBuffer(ID3D11Device* pD3DDevice, USHORT* indices);
|
||||
|
||||
ID3D11Buffer* _pVertexBuffer = nullptr; // dumps mesh vertices
|
||||
ID3D11Buffer* _pIndexBuffer = nullptr; // dumps mesh indices
|
||||
|
||||
Reference in New Issue
Block a user