bgfx_set_view_rect_ratio

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

  1. void bgfx_set_view_rect_ratio(bgfx_view_id_t _id, ushort _x, ushort _y, bgfx_backbuffer_ratio_t _ratio)
    version(BindBgfx_Static)
    extern (C) @nogc nothrow
    void
    bgfx_set_view_rect_ratio
  2. da_bgfx_set_view_rect_ratio bgfx_set_view_rect_ratio;

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.

_ratio bgfx_backbuffer_ratio_t

Width and height will be set in respect to back-buffer size. See: BackbufferRatio::Enum.

Meta