draw_set_clip
September 8th 2024
Set the clip rectangle for future render functions
Signature
Rect_f32
draw_set_clip(Application_Links* app,
Rect_f32 new_clip);
Parameters
app
the standard custom layer context pointer
new_clip
the new rectangular coordinates of the clip rectangle, in pixels relative to the top left corner of the screen
Return
the previous value of clip rectangle
Details
As a render function, this only takes effect during a call to the render hook.