19 bool initialize(
int window_w,
int window_h,
const char* title =
"Golias Engine - Window", Uint32 window_flags = SDL_WINDOW_RESIZABLE);
44 SDL_Window* _window =
nullptr;
75 extern std::unique_ptr<Engine>
GEngine;
void run()
Definition: engine.cpp:364
SDL_Window * get_window() const
Definition: engine.cpp:217
Renderer * get_renderer() const
Definition: engine.cpp:213
EngineConfig & get_config()
Definition: engine.cpp:204
bool initialize(int window_w, int window_h, const char *title="Golias Engine - Window", Uint32 window_flags=SDL_WINDOW_RESIZABLE)
Definition: engine.cpp:46
flecs::world & get_world()
Definition: engine.cpp:221
~Engine()
Definition: engine.cpp:377
Timer & get_timer()
Definition: engine.cpp:208
bool is_running
Definition: engine.h:33
SDL_Event event
Definition: engine.h:35
Definition: renderer.h:33
void engine_draw_loop()
Definition: engine.cpp:226
std::unique_ptr< Engine > GEngine
Definition: engine.cpp:3
void engine_core_loop()
Core engine loop function.
Definition: engine.cpp:276
void engine_setup_systems(flecs::world &world)
Sets up the core systems in the provided Flecs world.
Engine configuration loaded from project.xml.
Definition: project_config.h:181