|
coastline 0.0.4
|
The textures the race engine creates through the hooks of the renderer of the PC release, stored as texels in memory for the SDL game to draw. More...
#include <cstdint>#include <vector>#include "common/renderbackend.h"#include "common/vehicleview.h"
Go to the source code of this file.
Classes | |
| struct | coastline::EngineTexture |
| A texture of the race engine, as 8-bit RGBA texels. More... | |
| class | coastline::EngineTextures |
| Decoded textures for one active race engine. More... | |
Namespaces | |
| namespace | coastline |
Functions | |
| unsigned | coastline::CreateEngineTexture (const unsigned char *image, const unsigned char *palette, int width, int height, int lineBytes) |
| Create a texture from an 8-bit colour-indexed image of the console, as the hook g_pfnCreateTextureFromN64Image() of the PC release creates one. | |
| int | coastline::DecodeEngineTexture (void *destination, const unsigned char *image, const unsigned char *palette, int width, int height, int lineBytes) |
| Decode an 8-bit colour-indexed image of the console to its colours, each a big-endian RGBA5551 half, as the hook g_pfnDecodeN64TextureToPixelBuffer() of the PC release decodes one. | |
| void | coastline::LoadEngineTexture (unsigned entry, const unsigned char *colors) |
| Load the decoded colours of an image into a texture, as a command 0xdd of a display list loads them. | |
| const EngineTexture * | coastline::FindEngineTexture (unsigned entry) |
| void | coastline::ClearEngineTextures () |
| Drop every texture, as the renderer of the PC release shuts its textures down. | |
The textures the race engine creates through the hooks of the renderer of the PC release, stored as texels in memory for the SDL game to draw.