coastline 0.0.4
Loading...
Searching...
No Matches
coastline::GltfImage Struct Reference

A texture of a glTF document, as the RDP samples it. More...

#include <n64model.h>

Collaboration diagram for coastline::GltfImage:

Public Attributes

std::string uri
int width = 0
int height = 0
std::vector< std::uint8_t > rgba
std::vector< std::uint8_t > indices
 The 4-bit texels of an image the colour of a car paints, two to a byte with the first in the high four bits and each row starting on a byte, or empty for an image of RGBA texels.
std::vector< std::uint8_t > palette
 The 16 colours of the texels of indices, each a big-endian RGBA5551 half.
int paintMaterial = -1
 The material of the car, a VEHICLE_MATERIAL_ value, whose entry of the palette gives the alpha of the paint of the image.
std::size_t address = 0
 The offset of the texels in the image of the model.

Detailed Description

A texture of a glTF document, as the RDP samples it.

Member Data Documentation

◆ uri

std::string coastline::GltfImage::uri

The URI the document gives the image.

◆ width

int coastline::GltfImage::width = 0

The width in texels.

◆ height

int coastline::GltfImage::height = 0

The height in texels.

◆ rgba

std::vector<std::uint8_t> coastline::GltfImage::rgba

The texels as 8-bit RGBA, row by row from the top.

◆ indices

std::vector<std::uint8_t> coastline::GltfImage::indices

The 4-bit texels of an image the colour of a car paints, two to a byte with the first in the high four bits and each row starting on a byte, or empty for an image of RGBA texels.

◆ palette

std::vector<std::uint8_t> coastline::GltfImage::palette

The 16 colours of the texels of indices, each a big-endian RGBA5551 half.

◆ paintMaterial

int coastline::GltfImage::paintMaterial = -1

The material of the car, a VEHICLE_MATERIAL_ value, whose entry of the palette gives the alpha of the paint of the image.

◆ address

std::size_t coastline::GltfImage::address = 0

The offset of the texels in the image of the model.


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