![]() |
![]() |
![]() |
![]() |
ColorPickerAvailability LightWave® 6.0 Color pickers prompt the user for a color selection. They replace the operating system's default color selection mechanism, or provide one if no default exists. See the Color Picker global for a discussion of color pick requests from the host's point of view. Activation Function Version 4 of the activation function is affected by the color space setting of Affect Color Picker. Version 5 of the activation function ignores the setting of Affect Color Picker, and that color picker should provide its own settings for Display Color Space. XCALL_( int ) MyColorPick( int version, GlobalFunc *global, LWColorPickLocal *local, void *serverData ); The local argument to a color picker's activation function is an LWColorPickLocal. typedef void LWHotColorFunc( void *data, float r, float g, float b ); typedef struct st_LWColorPickLocal { int result; const char *title; float red, green, blue; void *data; LWHotColorFunc *hotFunc; } LWColorPickLocal;
Example The simpcolr SDK sample is a simple example of a color picker. |