diff options
| author | hachem <im@hachem.wtf> | 2025-08-12 19:17:50 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2025-08-12 19:17:50 +0200 |
| commit | 3b02022fd79ad0e130b8c49e7707d221bfc97bb5 (patch) | |
| tree | 0da9ee9559969a7f40d92611a3b1c234e38ae36f /src/core/application.h | |
| parent | 7e06a916e6a385c37075abcb83d14b8c1fef7bc0 (diff) | |
feat: texture and pixel buffers
Diffstat (limited to 'src/core/application.h')
| -rw-r--r-- | src/core/application.h | 4 |
1 files changed, 4 insertions, 0 deletions
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<Window> m_window; bool m_running; @@ -43,6 +45,7 @@ namespace Donut std::shared_ptr<VertexBuffer> m_vertex_buffer; std::shared_ptr<IndexBuffer> m_index_buffer; std::shared_ptr<Shader> m_shader; + std::shared_ptr<Texture2D> m_texture; std::unique_ptr<Camera> 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; }; |
