#include <state.hpp>
|
constexpr static auto | JOYSTICK_DEAD_ZONE = 3000 |
| Value to ignore x/y axis motion taps (useful ignoring stray joystick input) More...
|
|
Definition at line 60 of file state.hpp.
◆ State()
Eng3D::State::State |
( |
const std::vector< std::string > & |
pkg_paths | ) |
|
◆ ~State()
◆ clear()
void Eng3D::State::clear |
( |
| ) |
const |
◆ do_event()
void Eng3D::State::do_event |
( |
| ) |
|
◆ do_run()
void Eng3D::State::do_run |
( |
std::function< bool(void)> |
cond, |
|
|
std::function< void(void)> |
event, |
|
|
std::function< void(void)> |
render |
|
) |
| |
Perform the main game loop.
- Parameters
-
CondFn | Condition that is evaluated and checked, if it is not true then stop execution |
EventFn | Function to handle events |
RenderFn | Function to handle the rendering of the game |
Definition at line 522 of file state.cpp.
◆ get_instance()
◆ handle_key()
◆ handle_mouse_btn()
◆ handle_mouse_motion()
◆ handle_mouse_wheel()
◆ handle_resize()
void Eng3D::State::handle_resize |
( |
| ) |
|
|
virtual |
◆ init_window()
void Eng3D::State::init_window |
( |
void |
| ) |
|
◆ reload_shaders()
void Eng3D::State::reload_shaders |
( |
| ) |
|
◆ set_multisamples()
void Eng3D::State::set_multisamples |
( |
int |
samples | ) |
const |
◆ swap()
void Eng3D::State::swap |
( |
| ) |
|
◆ audio_man
◆ back_button_num
int Eng3D::State::back_button_num = 1 |
◆ current_frame_time
std::chrono::system_clock::time_point Eng3D::State::current_frame_time |
◆ cursor_movement_axis_num
int Eng3D::State::cursor_movement_axis_num = 1 |
Number of the axis assigned to cursor movement.
Definition at line 86 of file state.hpp.
◆ delta_time
float Eng3D::State::delta_time |
◆ down_button_num
int Eng3D::State::down_button_num = 15 |
◆ installer
◆ JOYSTICK_DEAD_ZONE
constexpr static auto Eng3D::State::JOYSTICK_DEAD_ZONE = 3000 |
|
staticconstexpr |
Value to ignore x/y axis motion taps (useful ignoring stray joystick input)
Definition at line 75 of file state.hpp.
◆ left_button_num
int Eng3D::State::left_button_num = 12 |
◆ map_back_button_num
int Eng3D::State::map_back_button_num = 3 |
◆ map_movement_axis_num
int Eng3D::State::map_movement_axis_num = 0 |
Number of the axis assigned to map movement.
Definition at line 84 of file state.hpp.
◆ map_select_button_num
int Eng3D::State::map_select_button_num = 2 |
◆ material_man
◆ model_man
◆ package_man
◆ right_button_num
int Eng3D::State::right_button_num = 14 |
◆ run
std::atomic<bool> Eng3D::State::run |
Variable telling if the game should quit, honored by most event loops but should be used explicitly if possible.
Definition at line 101 of file state.hpp.
◆ select_button_num
int Eng3D::State::select_button_num = 0 |
◆ show_ui
bool Eng3D::State::show_ui = true |
◆ string_man
◆ tex_man
◆ ttf_man
◆ ui_ctx
◆ up_button_num
int Eng3D::State::up_button_num = 13 |
◆ window
SDL_Window* Eng3D::State::window |
◆ zoomin_button_num
int Eng3D::State::zoomin_button_num = 10 |
Button for zooming in.
Definition at line 88 of file state.hpp.
◆ zoomout_button_num
int Eng3D::State::zoomout_button_num = 11 |
The documentation for this class was generated from the following files: