26#ifndef ULTRALIGHT_CAPI_RENDERER_H
27#define ULTRALIGHT_CAPI_RENDERER_H
114 unsigned int axis_count,
unsigned int button_count);
struct C_GamepadButtonEvent * ULGamepadButtonEvent
Definition CAPI_Defines.h:61
struct C_String * ULString
Definition CAPI_Defines.h:54
struct C_Config * ULConfig
Definition CAPI_Defines.h:48
#define ULExport
Definition CAPI_Defines.h:27
struct C_GamepadAxisEvent * ULGamepadAxisEvent
Definition CAPI_Defines.h:60
struct C_Renderer * ULRenderer
Definition CAPI_Defines.h:49
struct C_GamepadEvent * ULGamepadEvent
Definition CAPI_Defines.h:59
ULExport void ulFireGamepadEvent(ULRenderer renderer, ULGamepadEvent evt)
Fire a gamepad event (connection / disconnection).
ULExport void ulFireGamepadButtonEvent(ULRenderer renderer, ULGamepadButtonEvent evt)
Fire a gamepad button event (to be called when a button value is changed).
ULExport void ulLogMemoryUsage(ULRenderer renderer)
Print detailed memory usage statistics to the log.
ULExport void ulSetGamepadDetails(ULRenderer renderer, unsigned int index, ULString id, unsigned int axis_count, unsigned int button_count)
Describe the details of a gamepad, to be used with ulFireGamepadEvent and related events below.
ULExport ULRenderer ulCreateRenderer(ULConfig config)
Create the core renderer singleton for the library directly.
ULExport bool ulStartRemoteInspectorServer(ULRenderer renderer, const char *address, unsigned short port)
Start the remote inspector server.
ULExport void ulRender(ULRenderer renderer)
Render all active Views.
ULExport void ulFireGamepadAxisEvent(ULRenderer renderer, ULGamepadAxisEvent evt)
Fire a gamepad axis event (to be called when an axis value is changed).
ULExport void ulPurgeMemory(ULRenderer renderer)
Attempt to release as much memory as possible.
ULExport void ulDestroyRenderer(ULRenderer renderer)
Destroy the renderer.
ULExport void ulUpdate(ULRenderer renderer)
Update timers and dispatch internal callbacks (JavaScript and network).