| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/image/paletteimage.h>

Public Member Functions | |
| ColorPalette (int size=256, bool init=false) | |
| virtual | ~ColorPalette () |
| int | size () const |
| returns size of colortable | |
| void | setColor (int index, const Color &col) |
| void | setColor (int index, unsigned char r, unsigned char g, unsigned char b, unsigned char a) |
| void | setColor (int index, float r, float g, float b, float a) |
| Color | getColor (int index) const |
| float * | directData () const |
| Direct data access for OpenGL only. | |
| VRS_TYPEINFO (ColorPalette, SharedObj) | |
| VRS_SERIALIZABLE (ColorPalette) | |
| VRS::ColorPalette::ColorPalette | ( | int | size = 256, |
|
| bool | init = false | |||
| ) |
| virtual VRS::ColorPalette::~ColorPalette | ( | ) | [virtual] |
| int VRS::ColorPalette::size | ( | ) | const |
returns size of colortable
| void VRS::ColorPalette::setColor | ( | int | index, | |
| const Color & | col | |||
| ) |
| void VRS::ColorPalette::setColor | ( | int | index, | |
| unsigned char | r, | |||
| unsigned char | g, | |||
| unsigned char | b, | |||
| unsigned char | a | |||
| ) |
| void VRS::ColorPalette::setColor | ( | int | index, | |
| float | r, | |||
| float | g, | |||
| float | b, | |||
| float | a | |||
| ) |
| Color VRS::ColorPalette::getColor | ( | int | index | ) | const |
| float* VRS::ColorPalette::directData | ( | ) | const |
Direct data access for OpenGL only.
| VRS::ColorPalette::VRS_TYPEINFO | ( | ColorPalette | , | |
| SharedObj | ||||
| ) |
| VRS::ColorPalette::VRS_SERIALIZABLE | ( | ColorPalette | ) |