omni::core::UInt2

Defined in omni/core/Types.h

union UInt2
#include <omni/core/Types.h>

Helper struct to represent a single 2-space vector of unsigned integers.

Each member of the struct can be accessed in multiple ways including an array and direct accessors known by multiple names. Objects of this struct are guaranteed to be only as large as two 32-bit unsigned integers.

Public Members

uint32_t data[2]

Access to the value members in this object as an array.

uint32_t x

Provides access to the first data member as a Cartesian X coordinate.

uint32_t u

Provides access to the first data member as a U texture coordinate.

uint32_t s

Provides access to the first data member as an S texture coordinate.

uint32_t w

Provides access to the first data member as a width value.

uint32_t y

Provides access to the first data member as a Cartesian Y coordinate.

uint32_t v

Provides access to the first data member as a V texture coordinate.

uint32_t t

Provides access to the first data member as an T texture coordinate.

uint32_t h

Provides access to the first data member as a height value.

struct omni::core::UInt2::[anonymous] [anonymous]

Structure of unions containing the possible names of the first and second values in this object.