Unravel Engine C++ Reference
|
Functions | |
auto | initialize (rtti::context &ctx, const char *window_name="RmlUi", int width=1024, int height=768) -> bool |
Initialize the RmlUi backend with engine context. | |
void | shutdown () |
Shutdown the RmlUi backend and cleanup resources. | |
auto | get_system_interface () -> Rml::SystemInterface * |
Get the system interface for RmlUi. | |
auto | get_render_interface () -> Rml::RenderInterface * |
Get the render interface for RmlUi. | |
auto | process_events (Rml::Context *context, KeyDownCallback key_down_callback=nullptr) -> bool |
Process input events and forward them to RmlUi. | |
void | request_exit () |
Request the backend to exit during next event processing. | |
void | begin_frame () |
Prepare render state for RmlUi rendering Call this before rendering RmlUi context. | |
void | present_frame (const gfx::frame_buffer::ptr &framebuffer) |
Present the rendered frame Call this after rendering RmlUi context. | |
void | set_viewport (int width, int height) |
Update viewport size (call on window resize) | |
void unravel::RmlUi_Backend_Engine::begin_frame | ( | ) |
Prepare render state for RmlUi rendering Call this before rendering RmlUi context.
Definition at line 158 of file RmlUi_Backend_Engine.cpp.
auto unravel::RmlUi_Backend_Engine::get_render_interface | ( | ) | -> Rml::RenderInterface * |
Get the render interface for RmlUi.
Definition at line 128 of file RmlUi_Backend_Engine.cpp.
auto unravel::RmlUi_Backend_Engine::get_system_interface | ( | ) | -> Rml::SystemInterface * |
Get the system interface for RmlUi.
Definition at line 118 of file RmlUi_Backend_Engine.cpp.
auto unravel::RmlUi_Backend_Engine::initialize | ( | rtti::context & | ctx, |
const char * | window_name = "RmlUi", | ||
int | width = 1024, | ||
int | height = 768 ) -> bool |
Initialize the RmlUi backend with engine context.
ctx | Engine context for accessing systems |
window_name | Name for the UI context (optional) |
width | Initial viewport width |
height | Initial viewport height |
Definition at line 40 of file RmlUi_Backend_Engine.cpp.
void unravel::RmlUi_Backend_Engine::present_frame | ( | const gfx::frame_buffer::ptr & | framebuffer | ) |
Present the rendered frame Call this after rendering RmlUi context.
Definition at line 166 of file RmlUi_Backend_Engine.cpp.
auto unravel::RmlUi_Backend_Engine::process_events | ( | Rml::Context * | context, |
KeyDownCallback | key_down_callback = nullptr ) -> bool |
Process input events and forward them to RmlUi.
context | RmlUi context to receive events |
key_down_callback | Optional callback for key down events |
Definition at line 138 of file RmlUi_Backend_Engine.cpp.
void unravel::RmlUi_Backend_Engine::request_exit | ( | ) |
Request the backend to exit during next event processing.
Definition at line 150 of file RmlUi_Backend_Engine.cpp.
void unravel::RmlUi_Backend_Engine::set_viewport | ( | int | width, |
int | height ) |
Update viewport size (call on window resize)
width | New viewport width |
height | New viewport height |
Definition at line 174 of file RmlUi_Backend_Engine.cpp.
void unravel::RmlUi_Backend_Engine::shutdown | ( | ) |
Shutdown the RmlUi backend and cleanup resources.
Definition at line 93 of file RmlUi_Backend_Engine.cpp.