Function bgfx_sys::bgfx_encoder_set_scissor [−][src]
pub unsafe extern "C" fn bgfx_encoder_set_scissor(
_this: *mut bgfx_encoder_t,
_x: u16,
_y: u16,
_width: u16,
_height: u16
) -> u16
Expand description
Set scissor for draw primitive.
@remark
To scissor for all primitives in view see bgfx::setViewScissor
.
@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.
@returns Scissor cache index.