L3DT documentation
Large 3D terrain generator

This is an old revision of the document!


ColourPixel

Description

ColourPixel is both the the map pixel data type for maps initialised as MAP_24bit, as well as the data type used to represent RGB colour in Zeolite variables initialised as VarID_colour.

Definition

In ExtAPI_defines.h:

typedef struct {
  unsigned char r;
  unsigned char g;
  unsigned char b;
} ColourPixel;

Member data

Member name Type Comments
r unsigned char The red component of the colour (0…255).
g unsigned char The green component of the colour (0…255).
b unsigned char The blue component of the colour (0…255).

Type identifiers

VarID VarID_colour.
MapID MAP_24bit.
 
zeolite/types/colourpixel.1294889352.txt.gz · Last modified: 2017/08/31 05:47 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki