diff options
| author | hachem <im@hachem.wtf> | 2025-08-21 19:08:34 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2025-08-21 19:08:34 +0200 |
| commit | 6f72049359651155be62846e7d080d7a5e871096 (patch) | |
| tree | 2d07767c82264c0a126708176c9939806c9a7171 /src/Engine/Engine.h | |
| parent | 1bd39d11ff76e61bc3cc8b58286092a84997cc20 (diff) | |
[fix]: proper scene loading
Diffstat (limited to 'src/Engine/Engine.h')
| -rw-r--r-- | src/Engine/Engine.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Engine/Engine.h b/src/Engine/Engine.h index 05bd96f..f3724ff 100644 --- a/src/Engine/Engine.h +++ b/src/Engine/Engine.h @@ -8,8 +8,9 @@ #include <chrono> #include <cmath> -#include "Core/Application.h" #include "Core/Camera.h" +#include "Object.h" + #include "Rendering/Renderer.h" #include "Rendering/Shader.h" #include "Rendering/VertexArray.h" @@ -73,6 +74,7 @@ namespace Donut void RenderScene(); void UpdatePhysics(float deltaTime); void UpdateWindowDimensions(); + void SetWindowDimensions(int width, int height); int GetWidth() const { return m_Width; } int GetHeight() const { return m_Height; } @@ -97,6 +99,9 @@ namespace Donut void SetMaxStepsMoving(int steps) { m_MaxStepsMoving = steps; } void SetMaxStepsStatic(int steps) { m_MaxStepsStatic = steps; } void SetEarlyExitDistance(float distance) { m_EarlyExitDistance = distance; } + + void LoadObjectsFromScene(const std::vector<Donut::Object>& objects); + void PrintObjectInfo() const; private: Ref<Shader> CreateComputeProgram(const char* path); std::pair<Ref<VertexArray>, Ref<Texture2D>> QuadVAO(); |
