Kohi Game Engine
uvec4_u Union Reference

A 4-element vector of unsigned ints. More...

#include <math_types.h>

Data Fields

u32 elements [4]
 An array of x, y, z, w. More...
 
union {
   struct {
      union {
         u32   x
 The first element. More...
 
         u32   r
 The first element. More...
 
         u32   s
 The first element. More...
 
      } 
 
      union {
         u32   y
 The second element. More...
 
         u32   g
 The third element. More...
 
         u32   t
 The third element. More...
 
      } 
 
      union {
         u32   z
 The third element. More...
 
         u32   b
 The third element. More...
 
         u32   p
 The third element. More...
 
         u32   width
 The third element. More...
 
      } 
 
      union {
         u32   w
 The fourth element. More...
 
         u32   a
 The fourth element. More...
 
         u32   q
 The fourth element. More...
 
         u32   height
 The fourth element. More...
 
      } 
 
   } 
 
}; 
 

Detailed Description

A 4-element vector of unsigned ints.

Field Documentation

◆ 

union { ... }

◆ a

u32 a

The fourth element.

◆ b

u32 b

The third element.

◆ elements

u32 elements[4]

An array of x, y, z, w.

◆ g

u32 g

The third element.

◆ height

u32 height

The fourth element.

◆ p

u32 p

The third element.

◆ q

u32 q

The fourth element.

◆ r

u32 r

The first element.

◆ s

u32 s

The first element.

◆ t

u32 t

The third element.

◆ w

u32 w

The fourth element.

◆ width

u32 width

The third element.

◆ x

u32 x

The first element.

◆ y

u32 y

The second element.

◆ z

u32 z

The third element.


The documentation for this union was generated from the following file: