Viewport and Scissor Geometry

This section specifies primitive struct definitions to represent viewport and scissor properties.


Types

Structs

struct TL_Viewport_t

A structure defining a viewport.

This structure contains floating-point data for viewport position (of the top-left corner), size, and depth range.

Public Members

float x

X position of the viewport’s top-left corner.

float y

Y position of the viewport’s top-left corner.

float width

Width of the viewport.

float height

Height of the viewport.

float min_depth

Minimum depth of the viewport.

float max_depth

Maximum depth of the viewport.

struct TL_Extent2D_t

2-dimensional extent structure

This 2-dimensional extent struct is used for unsigned integral 2D extents.

Public Members

uint32_t width

Extent width.

uint32_t height

Extent height.

struct TL_Offset2D_t

2-dimensional offset (position) structure

This 2-dimensional offset struct contains signed integral 2D position values.

Public Members

int32_t x

X offset.

int32_t y

Y offset.

struct TL_Rect2D_t

2-dimensional structure with unsigned extent and signed offset data.

This 2-dimensional struct contains an unsigned extent and a signed offset.

Public Members

TL_Offset2D_t offset

Offset (position)

TL_Extent2D_t extent

Extent (size)