Function bgfx_sys::bgfx_set_view_rect_ratio
source · pub unsafe extern "C" fn bgfx_set_view_rect_ratio(
_id: bgfx_view_id_t,
_x: u16,
_y: u16,
_ratio: bgfx_backbuffer_ratio_t
)
Expand description
Set view rectangle. Draw primitive outside view will be clipped.
@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] _ratio Width and height will be set in respect to back-buffer size.
See: BackbufferRatio::Enum
.