aboutsummaryrefslogtreecommitdiff
path: root/src/Core/Application.h
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2025-08-12 19:17:50 +0200
committerhachem <im@hachem.wtf>2025-08-12 19:17:50 +0200
commit1ad6bc34323f5b30d463ebe47a58d47ff9d4f328 (patch)
tree535774e6db8e03fdb204c27734ca9fa43ab30a61 /src/Core/Application.h
parent8cf6858a6cd958f31521c4ce680cf2011bfb7cc3 (diff)
[add]: Texture and Pixel buffers
Diffstat (limited to 'src/Core/Application.h')
-rw-r--r--src/Core/Application.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Core/Application.h b/src/Core/Application.h
index 9e5d31d..7406136 100644
--- a/src/Core/Application.h
+++ b/src/Core/Application.h
@@ -12,6 +12,7 @@ namespace Donut
class VertexBuffer;
class IndexBuffer;
class Shader;
+ class Texture2D;
};
namespace Donut
@@ -34,6 +35,7 @@ namespace Donut
void OnUpdate();
void OnRender();
void OnEvent(Event& event);
+ void UpdateTexture();
private:
std::unique_ptr<Window> m_Window;
bool m_Running;
@@ -43,10 +45,10 @@ namespace Donut
std::shared_ptr<VertexBuffer> m_VertexBuffer;
std::shared_ptr<IndexBuffer> m_IndexBuffer;
std::shared_ptr<Shader> m_Shader;
+ std::shared_ptr<Texture2D> m_Texture;
std::unique_ptr<Camera> m_Camera;
- // Input state
bool m_Keys[1024] = { false };
bool m_FirstMouse = true;
float m_LastX = 0.0f;
@@ -54,6 +56,7 @@ namespace Donut
float m_DeltaTime = 0.0f;
float m_LastFrame = 0.0f;
bool m_MouseDragging = false;
+ float m_TextureTime = 0.0f;
static Application* s_Instance;
};