coastline 0.0.4
Loading...
Searching...
No Matches
decalcar.h File Reference

Editable car textures reconstructed from imported glTF or GLB assets. More...

#include <cstddef>
#include <cstdint>
#include <filesystem>
#include <optional>
#include <span>
#include <string>
#include <vector>
#include <nlohmann/json.hpp>
#include "common/types.h"
#include "gltfdocument.h"
Include dependency graph for decalcar.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  coastline::DecalTexture
 The byte offsets and dimensions of an indexed model texture or numbered paint layer. More...
class  coastline::DecalCar
 Editable console body materials or numbered image layers for an imported car. More...

Namespaces

namespace  coastline

Functions

int coastline::TexelOffset (int x, int y, int width)
 The byte of a texel of a 4-bit texture as the console loads it in one block, the 64-bit words of each odd row swapped.

Variables

constexpr int coastline::DECAL_SLOTS = 10
 The decals of a car, each the texture of the material of the same number.
constexpr int coastline::CAR_MATERIALS = 12
 The materials of a car whose palettes the colour of the car paints.
constexpr int coastline::CAR_MATERIAL_PAINT = 2
 The material whose palette is the paint, saved with the decals.
constexpr int coastline::CAR_MATERIAL_HEADLIGHTS = 10
 The material whose palette is the headlights.
constexpr int coastline::CAR_MATERIAL_REAR_LIGHTS = 11
 The material whose palette is the rear lights.

Detailed Description

Editable car textures reconstructed from imported glTF or GLB assets.

Console body materials use indexed texels and palettes; numbered panels composite indexed paint over imported RGBA.