The somaterialbundle class simplifies material handling. every shape node should create (on the stack) an instance of this class and call sendfirst() before sending anything to gl. during rendering, send() should be used to send material values to gl.
Inherits SoBundle.
SoMaterialBundle (SoAction *action)
~SoMaterialBundle ()
void setUpMultiple (void)
void sendFirst (void)
void forceSend (const int index)
SbBool isColorOnly (void) const
void send (const int index, const SbBool betweenbeginend)
The SoMaterialBundle class simplifies material handling.
Every shape node should create (on the stack) an instance of this class and call sendFirst() before sending anything to GL. During rendering, send() should be used to send material values to GL.
Constructor with action being the action applied to the geometry node.
Destructor
Currently not in use. It is only provided for OIV compliance.
Sends the initial material values to GL. Must be done once in all geometry nodes before the rendering begins.
Will send the material to GL even though index equals the current index.
Provided for compatibility with the SGI Open Inventor v2.1 API.
Returns TRUE if the current light model is BASE_COLOR.
Sends material values with index index to GL. Will test whether the current index equals index before sending.
betweenBeginEnd should be TRUE if your program is between a glBegin() and glEnd() (it is illegal to change the polygon stipple between a glBegin() and glEnd()).
Generated automatically by Doxygen for Coin from the source code.