SHARE
TWEET

ModelClass.h

a guest May 1st, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #pragma once
  2.  
  3. #include <d3d11.h>
  4. #include <iostream>
  5. #include <vector>
  6. #include "ShadersTable.h"
  7. #include "MaterialLibrary.h"
  8. #include "TexturesTable.h"
  9. #include "Structures.h"
  10.  
  11. using namespace std;
  12.  
  13. class ModelClass
  14. {
  15. private:
  16.    
  17. public:
  18.     ModelClass();
  19.     ModelClass(const ModelClass&);
  20.     ~ModelClass();
  21.  
  22.     void SetMeshSubsets(vector<Mesh>&);
  23.     bool Initialize(ID3D11Device*);
  24.     void Shutdown();
  25.     void Render(ID3D11DeviceContext*, ShadersTable*, MaterialLibrary*, TexturesTable*, D3DXMATRIX&, D3DXMATRIX&, D3DXMATRIX&);
  26.  
  27. private:
  28.     bool InitializeVertexBuffers(ID3D11Device*);
  29.     void ShutdownBuffers();
  30.  
  31. private:
  32.     vector<ID3D11Buffer*> m_vertexBuffers;
  33.     vector<Mesh> m_meshes;
  34. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top