Patch update - Scene window

This commit is contained in:
2025-01-16 21:02:17 +01:00
parent 06efdf6f6c
commit 15217a5df8
5 changed files with 95 additions and 19 deletions

View File

@@ -60,6 +60,7 @@ public:
ApplicationClass();
~ApplicationClass();
D3DClass* GetDirect3D();
RenderTextureClass* GetRenderTexture() const { return m_SceneTexture; };
bool Initialize(int, int, HWND);
void Shutdown();
@@ -111,6 +112,9 @@ public:
bool IsWindowed() const;
void SetWindowed(bool windowed);
void SetWindowSize(ImVec2 size) { windowSize = size; };
ImVec2 GetWindowSize() const { return windowSize; };
Physics* GetPhysics() const { return m_Physics; };
// ----------------------------------- //
@@ -159,7 +163,7 @@ private :
// ------------------------------------- //
XMMATRIX m_baseViewMatrix;
RenderTextureClass* m_RenderTexture, * m_RefractionTexture, * m_ReflectionTexture;
RenderTextureClass* m_RenderTexture, * m_RefractionTexture, * m_ReflectionTexture, * m_SceneTexture;
DisplayPlaneClass* m_DisplayPlane;
int m_screenWidth, m_screenHeight;
CameraClass* m_Camera;
@@ -227,6 +231,7 @@ private :
Physics* m_Physics;
float m_gravity;
XMVECTOR m_previousPosition;
ImVec2 windowSize;
// ------------------------------------------------- //
// ------------------- Culling --------------------- //