SoGLDrawStyleElement Class |
Note: This API is now obsolete.
Changes the current draw style in GL.
Namespace: OIV.Inventor.Elements
The SoGLDrawStyleElement type exposes the following members.
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() ![]() | GetClassStackIndex | Obsolete. Returns the stack id for this element. |
![]() | GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | Pop | Overrides pop() method so side effects can occur in GL. |
![]() | Push | Overrides push() so we can remember the previous element's draw style, and perhaps avoid sending unnecessary GL calls if this element is the same. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
This element changes the current draw style in GL. Overrides the virtual methods on SoDrawStyleElement to send the draw style to GL when necessary.
<font color="#0000FF">NOTE:</font> This class does not exist in Open Inventor 10.0 and later.
Note that this class relies on SoDrawStyleElement to store the style in the instance.
Also note that this tells GL only how to draw polygons. Shapes that contain lines still have to check for POINTS draw styles and act accordingly.