-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplication.h
More file actions
42 lines (31 loc) · 1.02 KB
/
application.h
File metadata and controls
42 lines (31 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#pragma once
#include "boid_simulator.h"
#include <SDL.h>
#include <SDL_image.h>
#include "imgui.h"
#include "imgui_impl_sdl2.h"
#include "imgui_impl_sdlrenderer2.h"
#include "logger.h"
#include "im_framerate_graph.h"
#include "utility.h"
class Application {
public:
SDL_Window* window = nullptr;
SDL_Renderer* renderer = nullptr;
SDL_Texture* boid_texture = nullptr;
SDL_RendererInfo info;
ImGuiIO* io = nullptr;
int window_width = 1000;
int window_height = 600;
int reset_boid_count = 100;
bool keep_alive = true;
ImFramerateGraph framerateGraph = ImFramerateGraph();
SimulationConfiguration configuration;
BoidSimulator simulator;
Application();
~Application();
void Run();
private:
void HandleEvent(SDL_Event& event);
void Render();
};