Minor Update - Stats Widget + BigCube Generation WIP - V10.2.0

This commit is contained in:
2025-05-07 17:15:11 +02:00
parent 2744c809d3
commit 94fd900ce8
13 changed files with 552 additions and 66 deletions

View File

@@ -213,9 +213,13 @@ public:
void Render(ID3D11DeviceContext*);
int GetIndexCount();
int GetVertexCount() const { return m_vertexCount; }
// TEXTURE //
//ID3D11ShaderResourceView* GetTexture(int index) const;
ID3D11ShaderResourceView* GetTexture(TextureType type, int index) const;
//bool ChangeTexture(ID3D11Device* device, ID3D11DeviceContext* deviceContext, std::wstring filename, int index);
bool ChangeTexture(ID3D11Device* device, ID3D11DeviceContext* deviceContext,std::wstring filename, TextureType type, int index);
@@ -227,7 +231,11 @@ public:
TextureContainer GetTextureContainer() const { return m_Textures; }
bool PreloadTextures(ID3D11Device* device, ID3D11DeviceContext* deviceContext, TextureContainer& textureContainer);
protected:
int m_vertexCount, m_indexCount;
ID3D11Buffer* m_vertexBuffer, * m_indexBuffer;
private:
bool InitializeBuffers(ID3D11Device*);
void ShutdownBuffers();
@@ -243,8 +251,6 @@ private:
void CalculateModelVectors();
void CalculateTangentBinormal(TempVertexType, TempVertexType, TempVertexType, VectorType&, VectorType&);
ID3D11Buffer* m_vertexBuffer, * m_indexBuffer;
int m_vertexCount, m_indexCount;
TextureContainer m_Textures;
ModelType* m_model;
};