diff options
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; }; |
