> home > Custom Layer Boundary API

view_enqueue_command_function

September 8th 2024
Push an command to the core to be processed in the context of a particular view

Signature

C++
b32
view_enqueue_command_function(Application_Links* app,
                              View_ID view_id,
                              Custom_Command_Function* custom_func);

Parameters

app

the standard custom layer context pointer

view_id

the id of the view who's context thread will be sent the command

custom_func

the function pointer to the command to be processed by the view

Return

non-zero if the view exists, zero otherwise

Details

Directly enqueued commands are triggered in the order they were enqueued before any additional events, virtual o real, are processed, and before the current frame renders.