From 3b02022fd79ad0e130b8c49e7707d221bfc97bb5 Mon Sep 17 00:00:00 2001 From: hachem Date: Tue, 12 Aug 2025 19:17:50 +0200 Subject: feat: texture and pixel buffers --- src/core/application.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core/application.h') diff --git a/src/core/application.h b/src/core/application.h index f78f107..2d8c55a 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 on_update(); void on_render(); void on_event(Event& event); + void update_texture(); private: std::unique_ptr m_window; bool m_running; @@ -43,6 +45,7 @@ namespace Donut std::shared_ptr m_vertex_buffer; std::shared_ptr m_index_buffer; std::shared_ptr m_shader; + std::shared_ptr m_texture; std::unique_ptr m_camera; @@ -53,6 +56,7 @@ namespace Donut float m_delta_time = 0.0f; float m_last_frame = 0.0f; bool m_mouse_dragging = false; + float m_texture_time = 0.0f; static Application* s_instance; }; -- cgit v1.3