|
NSUNI/NSLAR Library a250670
|
This namespace contains constants and functions for defining the vertex format. More...
Functions | |
| constexpr u32 | kWeightNum (u32 weight_num) |
| Generates a constant that encodes the number of weights. | |
| constexpr u32 | kMorphNum (u32 morph_num) |
| Generates a constant that encodes the number of morph targets. | |
Variables | |
| constexpr u32 | kUV8 = fmt_code::k8 << fmt_shift::kUV |
| 8-bit fixed-point texture coordinates (unsigned) | |
| constexpr u32 | kUV16 = fmt_code::k16 << fmt_shift::kUV |
| 16-bit fixed-point texture coordinates (unsigned) | |
| constexpr u32 | kUV32 = fmt_code::k32 << fmt_shift::kUV |
| floating-point texture coordinates | |
| constexpr u32 | kColor565 = fmt_code::k565 << fmt_shift::kColor |
| 2-byte color format. No alpha channel. | |
| constexpr u32 | kColor5551 = fmt_code::k5551 << fmt_shift::kColor |
| 2-byte color format. 1 bit for the alpha channel. | |
| constexpr u32 | kColor4444 = fmt_code::k4444 << fmt_shift::kColor |
| 2-byte color format. 4 bits per channel. | |
| constexpr u32 | kColor8888 = fmt_code::k8888 << fmt_shift::kColor |
| 4-byte color format. 8 bits per channel. | |
| constexpr u32 | kNormal8 = fmt_code::k8 << fmt_shift::kNormal |
| 8-bit fixed-point vertex normal (signed). | |
| constexpr u32 | kNormal16 = fmt_code::k16 << fmt_shift::kNormal |
| 16-bit fixed-point vertex normal (signed). | |
| constexpr u32 | kNormal32 = fmt_code::k32 << fmt_shift::kNormal |
| floating-point vertex normal. | |
| constexpr u32 | kPosition8 = fmt_code::k8 << fmt_shift::kPosition |
| 8-bit fixed-point vertex coordinates (signed). | |
| constexpr u32 | kPosition16 = fmt_code::k16 << fmt_shift::kPosition |
| 16-bit fixed-point vertex coordinates (signed). | |
| constexpr u32 | kPosition32 = fmt_code::k32 << fmt_shift::kPosition |
| floating-point vertex coordinates. | |
| constexpr u32 | kWeight8 = fmt_code::k8 << fmt_shift::kWeight |
| 8-bit fixed-point bone weights (unsigned). | |
| constexpr u32 | kWeight16 = fmt_code::k16 << fmt_shift::kWeight |
| 16-bit fixed-point bone weights (unsigned). | |
| constexpr u32 | kWeight32 = fmt_code::k32 << fmt_shift::kWeight |
| floating-point bone weights. | |
| constexpr u32 | kIndex8 = fmt_code::k8 << fmt_shift::kIndex |
| unsigned 8-bit indices (in index buffers) | |
| constexpr u32 | kIndex16 = fmt_code::k16 << fmt_shift::kIndex |
| unsigned 16-bit indices (in index buffers) | |
| constexpr u32 | kThrough = 1 << fmt_shift::kThrough |
| Indicates whether the 2D drawing mode is used. | |
This namespace contains constants and functions for defining the vertex format.
The constants in this namespace represent various formats for vertex attributes, and control the drawing modes. These constants should be combined together using bitwise OR to obtain the final vertex format value (which is stored in the lower 24 bits of a 32-bit variable).
Generates a constant that encodes the number of morph targets.
This function takes a number and returns a value that can be combined with the vertex format to specify the number of morph targets. A morph target is a set of various vertex attributes that represents a different state of the same vertex, rather than a different vertex entirely. There's always at least 1 "target".
| morph_num | The number of morph targets (1-8). |
Generates a constant that encodes the number of weights.
This function takes a number and returns a value that can be combined with the vertex format to specify the number of used weights.
| weight_num | The number of weights (1-8). |
|
constexpr |
2-byte color format. 4 bits per channel.
|
constexpr |
2-byte color format. 1 bit for the alpha channel.
|
constexpr |
2-byte color format. No alpha channel.
|
constexpr |
4-byte color format. 8 bits per channel.
|
constexpr |
unsigned 16-bit indices (in index buffers)
This constant enables the use of index buffers for more efficient storage.
|
constexpr |
unsigned 8-bit indices (in index buffers)
This constant enables the use of index buffers for more efficient storage.
|
constexpr |
16-bit fixed-point vertex normal (signed).
|
constexpr |
floating-point vertex normal.
|
constexpr |
8-bit fixed-point vertex normal (signed).
|
constexpr |
16-bit fixed-point vertex coordinates (signed).
|
constexpr |
floating-point vertex coordinates.
|
constexpr |
8-bit fixed-point vertex coordinates (signed).
|
constexpr |
Indicates whether the 2D drawing mode is used.
This constant enables the Through Mode, allowing vertices to bypass the 3D transformation pipeline and be drawn directly to the screen.
|
constexpr |
16-bit fixed-point texture coordinates (unsigned)
|
constexpr |
floating-point texture coordinates
|
constexpr |
8-bit fixed-point texture coordinates (unsigned)
|
constexpr |
16-bit fixed-point bone weights (unsigned).
|
constexpr |
floating-point bone weights.
|
constexpr |
8-bit fixed-point bone weights (unsigned).