Function bgfx_sys::bgfx_set_view_scissor
source · pub unsafe extern "C" fn bgfx_set_view_scissor(
_id: bgfx_view_id_t,
_x: u16,
_y: u16,
_width: u16,
_height: u16
)
Expand description
Set view scissor. Draw primitive outside view will be clipped. When _x, _y, _width and _height are set to 0, scissor will be disabled.
@param[in] _id View id. @param[in] _x Position x from the left corner of the window. @param[in] _y Position y from the top corner of the window. @param[in] _width Width of view scissor region. @param[in] _height Height of view scissor region.