> home > Custom Layer Boundary API

draw_set_clip

January 19th 2020
Set the clip rectangle for future render functions

Signature

C++
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.