114#ifndef ULTRALIGHT_CAPI_RENDERER_H
115#define ULTRALIGHT_CAPI_RENDERER_H
213 unsigned short port);
232 unsigned int axis_count,
unsigned int button_count);
Various defines and utility functions for the C API.
struct C_GamepadButtonEvent * ULGamepadButtonEvent
Definition CAPI_Defines.h:72
struct C_String * ULString
Definition CAPI_Defines.h:65
struct C_Config * ULConfig
Definition CAPI_Defines.h:59
#define ULExport
Definition CAPI_Defines.h:38
struct C_GamepadAxisEvent * ULGamepadAxisEvent
Definition CAPI_Defines.h:71
struct C_Renderer * ULRenderer
Definition CAPI_Defines.h:60
struct C_GamepadEvent * ULGamepadEvent
Definition CAPI_Defines.h:70
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 ulRefreshDisplay(ULRenderer renderer, unsigned int display_id)
Notify the renderer that a display has refreshed (you should call this after vsync).
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.
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 to their respective surfaces and render targets.
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).