MAJOR UPDATE - BROKEN

- New way of loading Texture
This commit is contained in:
2024-09-28 20:16:44 +02:00
parent 6a8172ab1f
commit e20a2aa365
32 changed files with 10727 additions and 117 deletions

View File

@@ -1,5 +1,7 @@
#pragma once
#include "modelclass.h"
#include <WICTextureLoader.h>
#include <SimpleMath.h>
class Object : public ModelClass
{
@@ -50,6 +52,10 @@ public:
int SetId(int id);
int GetId() const;
bool LoadTexture(ID3D11Device* device, ID3D11DeviceContext* deviceContext, const std::wstring& filename);
ID3D11ShaderResourceView* GetTexture() const;
public :
bool m_demoSpinning = false;
XMVECTOR m_previousPosition;
@@ -68,5 +74,5 @@ private:
bool m_isGrounded;
std::string m_name;
ID3D11ShaderResourceView* m_Texture;
};