Major Update - V9.0.0

[FEAT] :

+ Add Save and Load system for scene but only for kobject
This commit is contained in:
2025-03-18 22:43:23 +01:00
parent 6583f74a5f
commit eea7b4c067
10 changed files with 240 additions and 55 deletions

View File

@@ -93,7 +93,7 @@ public:
std::vector<Object*> GetCubes() const { return m_cubes; };
std::vector<Object*> GetTerrainCubes() const { return m_terrainChunk; };
std::vector<Object*> GetKobjects() const { return m_object; };
void AddKobject(WCHAR* filepath);
void AddKobject(std::wstring& filepath);
void SetPath(WCHAR* path) { m_path = path; };
void SetWFolder(std::filesystem::path WFolder) { m_WFolder = WFolder; };
@@ -152,6 +152,9 @@ public:
void LoadScene();
void SetScenePath(std::string path) { m_scenePath = path; };
std::wstring GetScenePath();
std::string ConvertWStringToString(const std::wstring& wstr);
private:
bool Render(float, float, float, float, float);
@@ -167,6 +170,7 @@ private:
void ConstructSkybox(); // Construct the skybox
void UpdateSkyboxPosition(); // Update the skybox position
bool RenderSkybox(XMMATRIX view, XMMATRIX projection); // Render the skybox
public :
std::vector<ID3D11ShaderResourceView*> textures;

View File

@@ -86,6 +86,9 @@ public:
float GetBoundingRadius() const;
void SetModelPath(std::wstring& path) { m_modelPath = path; }
std::wstring& GetModelPath() { return m_modelPath; }
public :
bool m_demoSpinning = false;
XMVECTOR m_previousPosition;
@@ -110,4 +113,5 @@ private:
ShaderType m_activeShader = LIGHTING;
float m_boundingRadius;
std::wstring m_modelPath;
};