bettola/src/bettola.h
Ritchie Cunningham a8a1ea44cf refactor(math): Replace GLM with custom math lib.
Replaced the GLM dependency with a custom math lib 'libbettola'
2025-09-13 02:25:13 +01:00

47 lines
752 B
C++

#pragma once
#include <SDL3/SDL.h>
#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;
};