bgfx_set_view_rect

Set view rectangle. Draw primitive outside view will be clipped.

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

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 port region.

_height ushort

Height of view port region.

Meta