From 1ad6bc34323f5b30d463ebe47a58d47ff9d4f328 Mon Sep 17 00:00:00 2001 From: hachem Date: Tue, 12 Aug 2025 19:17:50 +0200 Subject: [add]: Texture and Pixel buffers --- src/Core/Application.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/Core/Application.h') 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 m_Window; bool m_Running; @@ -43,10 +45,10 @@ namespace Donut std::shared_ptr m_VertexBuffer; std::shared_ptr m_IndexBuffer; std::shared_ptr m_Shader; + std::shared_ptr m_Texture; std::unique_ptr 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; }; -- cgit v1.3