Debian Codegraph @

doc/man/man3/ivm/nodes/SoPackedColor.ivm

raw
1 NAME SoPackedColor SoPCol "" {
2 node that defines base colors using packed representation
3 }
4
5 INCLUDE nodes/SoPackedColor.h
6
7 DESC {
8 \cSoPackedColor\. is similar to \cSoBaseColor\. in that it sets the
9 diffuse color component of the current material. However, it also
10 changes the transparency component. The color and transparency
11 information is packed into unsigned 32-bit integers: \k0xrrggbbaa\.,
12 where \kaa\. represents the alpha (\k0x00\. = fully transparent,
13 \k0xff\. = opaque), and \krr\., \kgg\., and \kbb\. represent the
14 red, blue, and green components of the color, respectively.
15 Note that the order (r,g,b,a) of these components is reversed from
16 the ordering in releases of Inventor prior to 2.1.
17 \p
18 If the
19 transparency type is \cSoGLRenderAction::SCREEN_DOOR\., only the
20 first transparency value will be used. With other transparency types,
21 multiple transparencies will be used.
22 \p
23 \cSoPackedColor\. uses less memory than \cSoBaseColor\. or
24 \cSoMaterial\. to store multiple color and transparency values. It
25 can be used in cases where space is critical.
26 }
27
28 FIELD orderedRGBA { Defines the packed colors. }
29
30 METHOD "" SoPackedColor() {
31 Creates a packed color node with default settings.
32 }
33
34 METHOD "" static SoType getClassTypeId() {
35 Returns type identifier for this class.
36 }
37
38 ACTION SoGLRenderAction, SoCallbackAction {
39 Sets the current base (diffuse) color(s) in the state.
40 }
41
42 ALSO {
43 SoBaseColor, SoMaterial
44 }