Urho3D
Classes | Macros
Application.h File Reference
#include "../Core/Context.h"
#include "../Core/Main.h"
#include "../Engine/Engine.h"

Classes

class  Urho3D::Application
 Base class for creating applications which initialize the Urho3D engine and run a main loop until exited. More...
 

Macros

#define URHO3D_DEFINE_APPLICATION_MAIN(className)
 

Macro Definition Documentation

◆ URHO3D_DEFINE_APPLICATION_MAIN

#define URHO3D_DEFINE_APPLICATION_MAIN (   className)
Value:
int RunApplication() \
{ \
Urho3D::SharedPtr<Urho3D::Context> context(new Urho3D::Context()); \
Urho3D::SharedPtr<className> application(new className(context)); \
return application->Run(); \
} \
URHO3D_DEFINE_MAIN(RunApplication())
Urho3D execution context. Provides access to subsystems, object factories and attributes,...
Definition: Context.h:48