sdl_runtime_compiler git · main
SDL3 game for running and compiling code at runtime
C++ 72.3% C 26.2%git clone https://git.christianimmanuel.de/sdl-graphics/sdl_runtime_compiler.gitwget https://git.christianimmanuel.de/sdl-graphics/sdl_runtime_compiler/archive/sdl_runtime_compiler.tar.gzsrc/states/istate.hpp raw
#pragma once
#include <SDL3/SDL.h>
namespace
Nimbin
{
class Game;
class GlRenderer;
class IState
{
public:
virtual ~IState() = default;
virtual void on_Enter(Game&) {}
virtual void on_Exit(Game&) {}
virtual void handle_Event(Game& game, const SDL_Event&) = 0;
virtual void update(double dt, const GlRenderer*) = 0;
virtual void render(SDL_Window&, GlRenderer&) = 0;
};
} // namespace Nimbin