| 1 |
NAME SoColorIndex SoColInd "" { surface color index node } |
| 2 |
|
| 3 |
INCLUDE nodes/SoColorIndex.h |
| 4 |
|
| 5 |
DESC { |
| 6 |
This node specifies the color to use for subsequent shapes as an index |
| 7 |
into the current color table. This is used only for \kBASE_COLOR\. |
| 8 |
lighting (see \cSoLightModel\.) in color index mode. Color index mode |
| 9 |
may be enabled by the window in which rendering occurs. |
| 10 |
\p |
| 11 |
Since color indices make sense only in the context of OpenGL rendering, |
| 12 |
this node implements only a method for the \cSoGLRenderAction\.. |
| 13 |
} |
| 14 |
|
| 15 |
FIELD index { Color index. } |
| 16 |
|
| 17 |
METHOD "" SoColorIndex() { |
| 18 |
Creates a color index node with default settings. |
| 19 |
} |
| 20 |
|
| 21 |
METHOD "" static SoType getClassTypeId() { |
| 22 |
Returns type identifier for this class. |
| 23 |
} |
| 24 |
|
| 25 |
ACTION SoGLRenderAction { |
| 26 |
Sets the color index for subsequent shapes rendered with |
| 27 |
\kBASE_COLOR\. lighting. |
| 28 |
} |
| 29 |
|
| 30 |
ALSO { SoBaseColor, SoLightModel } |