66 String file_system_path =
"./assets/";
75 bool load_shaders_from_file_system =
false;
82 bool force_cpu_renderer =
false;
#define AExport
Definition Defines.h:42
Main application singleton (use this if you want to let the library manage window creation).
Definition App.h:91
virtual Monitor * main_monitor()=0
Get the main monitor (this is never NULL).
virtual void set_listener(AppListener *listener)=0
Set an AppListener to receive callbacks for app-related events.
virtual void Quit()=0
Quit the application.
virtual bool is_running() const =0
Whether or not the App is running.
virtual AppListener * listener()=0
Get the AppListener, if any.
static App * instance()
Get the App singleton.
static RefPtr< App > Create(Settings settings=Settings(), Config config=Config())
Create the App singleton.
virtual RefPtr< Renderer > renderer()=0
Get the underlying Renderer instance.
virtual void Run()=0
Run the main loop.
virtual const Settings & settings() const =0
Get the settings this App was created with.
Interface for all App-related events.
Definition App.h:22
virtual void OnUpdate()
Called whenever the App updates.
Definition App.h:32
virtual ~AppListener()
Definition App.h:24
Monitor class, represents a platform monitor.
Definition Monitor.h:16
Interface for all ref-counted objects that will be managed using the RefPtr<> smart pointer.
Definition RefPtr.h:47
A nullable smart pointer.
Definition RefPtr.h:79
UTF-8 String container with conversions for UTF-16 and UTF-32.
Definition String.h:21
Window class, represents a platform window.
Definition Window.h:87
Global config for Ultralight.
Definition Config.h:72
App-specific settings.
Definition App.h:38