2#include "Core/Common/CommonHeaders.h"
3#include "Core/App/Window.h"
4#include "Core/Engine/World.h"
59 void Tick(
const F64 dt);
70 std::unique_ptr<World> m_world;
80 extern std::unique_ptr<Nui::AppBase> MakeApp();
84#define NUI_DECLARE_APP(app, ...) \
85namespace Nui::Internal \
87 std::unique_ptr<Nui::AppBase> MakeApp() \
89 return std::make_unique<app>(__VA_ARGS__);\
Base class for all apps in Nui Engine.
Definition AppBase.h:14
virtual void OnInit()
Called when the app is initialized (to be implemented in derived class)
Definition AppBase.h:33
virtual void OnShutdown()
Called when the app is shutdown (to be implemented in derived class)
Definition AppBase.h:38
AppBase(WStringView appName, Window::Style style, Window::Size size)
Construct a new AppBase object.
Definition AppBase.cpp:5
World * GetWorld() const
Get the world of the app.
Definition AppBase.h:44
virtual ~AppBase()=default
Virtual destructor.
Core engine class for Nui Engine.
Definition Engine.h:12
Class representing a window in the application.
Definition Window.h:12
Style
Window styles.
Definition Window.h:19
World class - the main context for the engine.
Definition World.h:19
Window size.
Definition Window.h:46