bgfx_set_view_scissor

Set view scissor. Draw primitive outside view will be clipped. When _x, _y, _width and _height are set to 0, scissor will be disabled.

  1. void bgfx_set_view_scissor(bgfx_view_id_t _id, ushort _x, ushort _y, ushort _width, ushort _height)
    version(BindBgfx_Static)
    extern (C) @nogc nothrow
    void
    bgfx_set_view_scissor
    (,
    ushort _x
    ,
    ushort _y
    ,
    ushort _width
    ,
    ushort _height
    )
  2. da_bgfx_set_view_scissor bgfx_set_view_scissor;

Parameters

_id bgfx_view_id_t

View id.

_x ushort

Position x from the left corner of the window.

_y ushort

Position y from the top corner of the window.

_width ushort

Width of view scissor region.

_height ushort

Height of view scissor region.

Meta