|
Panda3D
|
This controls the enabling of transparency. More...
Public Types | |
| enum | Mode { MNone = 0, MAlpha = 1, MNotused = 2, MMultisample = 3, MMultisampleMask = 4, MBinary = 5, MDual = 6 } |
Public Member Functions | |
| Mode | getMode () |
| Returns the transparency mode. | |
Static Public Member Functions | |
| static int | getClassSlot () |
| static TypeHandle | getClassType () |
| static RenderAttrib const | make (Mode mode) |
| Constructs a new TransparencyAttrib object. | |
| static RenderAttrib const | makeDefault () |
| Returns a RenderAttrib that corresponds to whatever the standard default properties for render attributes of this type ought to be. | |
This controls the enabling of transparency.
Simply setting an alpha component to non-1 does not in itself make an object transparent; you must also enable transparency mode with a suitable TransparencyAttrib. Similarly, it is wasteful to render an object with a TransparencyAttrib in effect unless you actually want it to be at least partially transparent (and it has alpha components less than 1).
| enum Mode |
| static int getClassSlot | ( | ) | [static] |
| static TypeHandle getClassType | ( | ) | [static] |
Reimplemented from RenderAttrib.
| Mode getMode | ( | ) |
Returns the transparency mode.
| static RenderAttrib const make | ( | Mode | mode | ) | [static] |
Constructs a new TransparencyAttrib object.
| static RenderAttrib const makeDefault | ( | ) | [static] |
Returns a RenderAttrib that corresponds to whatever the standard default properties for render attributes of this type ought to be.
1.7.3