#include "namedcolordev.h"
Data Fields | |
size_t | size |
int32 | nchannels |
ncdev_color_t * | color_table |
int | color_table_size |
void(* | tinttransform )(float *color, int32 num_channels, float tint) |
A structure to hold details about each named color device instance.
ncdev_color_t* ncdev_details_t::color_table |
A table of solid color values for use with this device instance.
int ncdev_details_t::color_table_size |
The number of entries in 'color_table'.
int32 ncdev_details_t::nchannels |
Number of channels in the converted color space.
size_t ncdev_details_t::size |
Size of this structure.
void(* ncdev_details_t::tinttransform) (float *color, int32 num_channels, float tint) |
An optional C function that converts a solid color, as provided by color_entry_t to a tint. The 'color' param will contain the solid color with 'num_channels' components. The function will modify 'color' up to the same number of components to return the 'tint' color.