Ultralight
1.0.0
A fast, lightweight, HTML UI engine for native apps.
|
The core of Ultralight. More...
#include <Renderer.h>
Public Member Functions | |
virtual Ref< View > | CreateView (uint32_t width, uint32_t height, bool transparent)=0 |
Create a new View. More... | |
virtual void | Update ()=0 |
Update timers and dispatch internal callbacks. More... | |
virtual void | Render ()=0 |
Render all active views to display lists and dispatch calls to GPUDriver. More... | |
virtual void | PurgeMemory ()=0 |
Attempt to release as much memory as possible. More... | |
Static Public Member Functions | |
static Ref< Renderer > | Create () |
Create the Renderer singleton. More... | |
The core of Ultralight.
You should initialize it after setting up your Platform config and drivers.
This singleton class manages the lifetime of all Views (
Definition at line 32 of file Renderer.h.
Create the Renderer singleton.
You should set up all your Platform config, file-system, and drivers before calling this function.
|
pure virtual |
Create a new View.
width | The initial width, in device coordinates. |
height | The initial height, in device coordinates. |
transparent | Whether or not the view background is transparent. |
|
pure virtual |
Attempt to release as much memory as possible.
Don't call this from any callbacks or driver code.
|
pure virtual |
Render all active views to display lists and dispatch calls to GPUDriver.
|
pure virtual |
Update timers and dispatch internal callbacks.
You should call this often from your main application loop.