sokol.letterbox

Machine generated D bindings for Sokol library.

Source header: sokol_letterbox.h Module: sokol.letterbox

Do not edit manually; regenerate using gen_d.py.

Members

Enums

Anchor
enum Anchor

Anchor the content to a side. The default is to center the content. Used in slbx_letterbox_desc.

Functions

letterbox
Viewport letterbox(int width, int height, LetterboxDesc desc)
Undocumented in source. Be warned that the author may not have intended to support it.
slbx_letterbox
Viewport slbx_letterbox(int width, int height, LetterboxDesc* desc)

compute viewport for 'letterboxing' fixed-aspect content in a variable-aspect framebuffer

Structs

Border
struct Border

Defines a 'safe border' in pixels. Used as nested struct in slbx_letterbox_desc.

LetterboxDesc
struct LetterboxDesc

The content letterbox description. Used as input to the slbx_letterbox() function.

Viewport
struct Viewport

The resulting viewport. Return value of slbx_letterbox()

Meta