]> git.lizzy.rs Git - nothing.git/blob - src/game/settings.h
Add TODO(#1123)
[nothing.git] / src / game / settings.h
1 #ifndef SETTINGS_H_
2 #define SETTINGS_H_
3
4 #include "game/camera.h"
5 #include "game/level/background.h"
6 #include "ui/slider.h"
7
8 typedef struct {
9     Background background;
10     // TODO(#1123): the volume_slider is not fully synced with the volume of sound_samples
11     Slider volume_slider;
12     Vec2f volume_slider_scale;
13     Vec2f camera_position;
14 } Settings;
15
16 Settings create_settings(void);
17
18 void settings_render(const Settings *settings, const Camera *camera);
19 void settings_event(Settings *settings, Camera *camera, const SDL_Event *event);
20 void settings_update(Settings *settings, Camera *camera, float dt);
21
22 #endif  // SETTINGS_H_