5#include "flint/audio/audio.h"
6#include "flint/core/api.h"
7#include "flint/core/asset-loader.h"
8#include "flint/core/config.h"
9#include "flint/core/state.h"
10#include "flint/resource/assets-manager.h"
11#include "flint/ui/ui-canvas.h"
12#include "flint/ui/ui-system.h"
13#include "flint/window/IWindow.h"
20 class CodeHotReloadHost;
55 return *m_gpuRenderer;
68 FLINT_API std::string loadUIContent(
const std::string &filePath);
72 return m_stateManager;
82 return *m_assetLoader;
86 return *m_assetManager;
89 const AssetManager &getAssetManager()
const {
90 return *m_assetManager;
93 const FlintConfig &getConfig()
const {
97 virtual FLINT_API
void close();
117 virtual void onUpdate(
float deltaTime) {
131 void setupGlobalEvents();
132 void updateDisplayScale();
134 void initializeCodeHotReload();
135 void updateCodeHotReload();
136 void shutdownCodeHotReload();
138 SDL_GPUPresentMode getPresentMode(GRAPHICS_PRESENT_MODE presentMode);
141 GRAPHICS_BACKEND m_backend;
142 std::unique_ptr<IAssetLoader> m_ownedAssetLoader;
144 std::unique_ptr<IWindow> m_window;
146 std::unique_ptr<GPURenderer> m_gpuRenderer;
147 std::unique_ptr<AssetManager> m_assetManager;
149 std::unique_ptr<UICanvas> m_uiCanvas;
151 bool m_minimized =
false;
153 std::unique_ptr<Internal::CodeHotReloadHost> m_codeHotReloadHost;
Entry-point base class for a Flint application.
StateManager & getStateManager()
returns A reference to the state manager.
IAssetLoader & getAssetLoader()
returns A reference to the asset loader
UICanvas & getUICanvas()
Returns the UI renderer.
virtual std::unique_ptr< State > createInitialState()=0
Factory method that creates the game state pushed into the stack.
IWindow & getWindow()
returns A window reference.
UISystem & getUISystem()
Returns the UI system.
virtual void onInit()
Optional hook called after engine is fully initialized.
GPURenderer & getRenderer() const
returns A reference to the GPU renderer.
virtual void onShutdown()
Optional hook called just before the engine shuts down.
Audio & getAudioEngine()
returns A reference to the audio engine.
FLINT_API Application(const FlintConfig &config, IAssetLoader *assetLoader=nullptr)
Construct and initialize a Flint application.
Central resource cache and hot-reload coordinator.
Manages audio playback via SDL3_mixer.
High-level SDL GPU renderer managing pipeline state, batching, and frame presentation.
Abstract interface for loading raw asset data by path.
Abstract interface for a platform window.
Manages a stack of States and applies queued transitions.
Dynamic 2D batching engine processing shape vector geometry and hardware-accelerated text strings....
Central gateway subsystem managing UI multi-context lifetimes, resolution scaling,...
Aggregate configuration passed to the engine bootstrap code.