|
Coconut Data Framework
beta
|
Define Color table. More...
#import "CNColor.h"Go to the source code of this file.
Functions | |
| void | CNSetupColorTable (struct CNResource *resource) |
| Initialize global color table. | |
| struct CNColor * | CNAllocateColor (GLfloat r, GLfloat g, GLfloat b, GLfloat a) |
| Allocate CNColor object. | |
| static struct CNColor * | CNBasicIdToColor (CNBasicColorId colorid) |
| Get color by basic-color-id. | |
| static GLfloat | CNColor16PartToColorPart (unsigned int src) |
| Convert part of CNColor16 to CNColor. | |
| static struct CNColor * | CNColor16ToColor (CNColor16 src) |
| Convert CNColor16 to CNColor. | |
Define Color table.
| void CNSetupColorTable | ( | struct CNResource * | resource | ) |
Initialize global color table.
| resource | Resource to allocate the tabl |
| struct CNColor* CNAllocateColor | ( | GLfloat | r, |
| GLfloat | g, | ||
| GLfloat | b, | ||
| GLfloat | a | ||
| ) | [read] |
Allocate CNColor object.
| r | Red part of color |
| g | Green part of color |
| b | Blue part of color |
| a | Alpha part of color |
Referenced by CNColor16ToColor().
| static struct CNColor* CNBasicIdToColor | ( | CNBasicColorId | colorid | ) | [static, read] |
Get color by basic-color-id.
| colorid | Source basic color id |
| static GLfloat CNColor16PartToColorPart | ( | unsigned int | src | ) | [inline, static] |
Convert part of CNColor16 to CNColor.
| src | Source the part of CNColor16 data |
Referenced by CNColor16ToColor().
Convert CNColor16 to CNColor.
| src | Source CNColor16 data |
References CNAllocateColor(), and CNColor16PartToColorPart().
1.7.5.1