8#ifndef MALENA_APPLICATION_H
9#define MALENA_APPLICATION_H
51 const std::string& title,
66 unsigned int screenHeight,
67 unsigned int bitDepth,
68 const std::string& title,
197 template<
typename TManifest,
typename... Traits>
Architecture
Architectural style hint passed at construction.
@ MVC
Model-View-Controller.
AppManager(const sf::VideoMode &videoMode, const std::string &title, sf::RenderWindow &window=WindowManager::getWindow(), Architecture architecture=MVC, std::uint32_t windowStyle=sf::Style::Default)
Construct an AppManager and create the SFML window.
void addComponent(Core &component)
Register a Core object with the application's component manager.
static void clearEvents()
Clear all event subscriptions across the entire application.
void reset()
Full application reset — clears events, messages, and components.
ApplicationBase(unsigned int screenWidth, unsigned int screenHeight, unsigned int bitDepth, const std::string &title, std::uint32_t windowStyle=sf::Style::Default)
Construct from pixel dimensions and bit depth.
ApplicationBase(const sf::VideoMode &videoMode, const std::string &title, sf::RenderWindow &window=WindowManager::getWindow(), AppManager::Architecture architecture=AppManager::MVC, std::uint32_t windowStyle=sf::Style::Default)
Construct with an explicit video mode and window title.
Primary entry point for Malena applications without a manifest.
ApplicationBase(const sf::VideoMode &videoMode, const std::string &title, sf::RenderWindow &window=WindowManager::getWindow(), AppManager::Architecture architecture=AppManager::MVC, std::uint32_t windowStyle=sf::Style::Default)
Construct with an explicit video mode and window title.
Entry point for Malena applications with a manifest.
ml::ManifestResources< TManifest > Resources
Unified resource accessor — Resources::get(Images::Icon).
ApplicationBase(const sf::VideoMode &videoMode, const std::string &title, sf::RenderWindow &window=WindowManager::getWindow(), AppManager::Architecture architecture=AppManager::MVC, std::uint32_t windowStyle=sf::Style::Default)
Construct with an explicit video mode and window title.
Virtual base class for all Malena framework objects.
Trait that adds per-frame update and window lifecycle callbacks to any Core object.
sf::RenderWindow & getWindow()
Return the framework's shared sf::RenderWindow.
Collects all State enums from a component manifest and its traits.
Unified manifest resource and config accessor.