hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/core/application.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/application.h')
-rw-r--r--src/core/application.h41
1 files changed, 19 insertions, 22 deletions
diff --git a/src/core/application.h b/src/core/application.h
index 713ecba..e5a983a 100644
--- a/src/core/application.h
+++ b/src/core/application.h
@@ -6,14 +6,11 @@
#include <memory>
#include <functional>
-namespace Donut
-{
- class VertexArray;
- class VertexBuffer;
- class IndexBuffer;
- class Shader;
- class Texture2D;
-};
+#include "rendering/vertex_array.h"
+#include "rendering/vertex_buffer.h"
+#include "rendering/index_buffer.h"
+#include "rendering/shader.h"
+#include "rendering/texture.h"
namespace Donut
{
@@ -41,29 +38,29 @@ namespace Donut
bool m_running;
bool m_minimized;
- std::shared_ptr<VertexArray> m_vertex_array;
+ std::shared_ptr<VertexArray> m_vertex_array;
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::shared_ptr<IndexBuffer> m_index_buffer;
+ std::shared_ptr<Shader> m_shader;
+ std::shared_ptr<Texture2D> m_texture;
- std::shared_ptr<Shader> m_compute_shader;
+ std::shared_ptr<Shader> m_compute_shader;
std::shared_ptr<Texture2D> m_processed_texture;
float m_compute_brightness;
float m_compute_contrast;
float m_compute_saturation;
- bool m_use_compute_shader;
+ bool m_use_compute_shader;
std::unique_ptr<Camera> m_camera;
- bool m_keys[1024] = { false };
- bool m_first_mouse = true;
- float m_last_x = 0.0f;
- float m_last_y = 0.0f;
- float m_delta_time = 0.0f;
- float m_last_frame = 0.0f;
- bool m_mouse_dragging = false;
- float m_texture_time = 0.0f;
+ bool m_keys[1024] = { false };
+ bool m_first_mouse = true;
+ float m_last_x = 0.0f;
+ float m_last_y = 0.0f;
+ 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;
};