In file libs/cs3d/software/soft_txt.h:

(rgb) class TxtCmapPrivate

A class containing the private colormap and translation to the global colormap for a single texture

Private Fields

unsigned char alloc[256]
Colors which are allocated.
unsigned char priv_to_global[256]
Array which maps the private palette index to the global palette index
unsigned char rgb_values[256*4]
Array with RGB values for every color of the palette

Private Methods

int alloc_rgb(int r, int g, int b, int dist)
Allocate a new RGB color in the private colormap
int find_rgb(int r, int g, int b)
Find an RGB value from the private map and return the index in the private colormap
TxtCmapPrivate()
Constructor

Documentation

A class containing the private colormap and translation to the global colormap for a single texture. This class is only used in TXT_PRIVATE mode (private colormap for every texture).
unsigned char rgb_values[256*4]
Array with RGB values for every color of the palette. An RGB value has four bytes: R, G, B, unused. So there are 256*4 bytes in this array.

unsigned char priv_to_global[256]
Array which maps the private palette index to the global palette index

unsigned char alloc[256]
Colors which are allocated.

TxtCmapPrivate()
Constructor

int find_rgb(int r, int g, int b)
Find an RGB value from the private map and return the index in the private colormap

int alloc_rgb(int r, int g, int b, int dist)
Allocate a new RGB color in the private colormap


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de