#pragma once #include #include "graphics/shader.h" #include "game/player.h" #include "math/mat4.h" class Bettola { public: Bettola(void); ~Bettola(void); int run(void); private: void process_events(void); void update(double dt); void render(void); bool init_sdl(void); bool init_glew(void); bool create_window(void); bool create_gl_context(void); void setup_quad(void); struct InputState { bool up = false; bool down = false; bool left = false; bool right = false; }; bool _is_running; SDL_Window* _window; SDL_GLContext _gl_context; Shader _shader; unsigned int _vao; unsigned int _vbo; BettolaMath::Mat4 _projection; Player _player; InputState _input; };