Class SoGLLazyElement


public class SoGLLazyElement extends SoLazyElement
Manages the GL state for the SoLazyElement. This element manages the GL state for the SoLazyElement.

Note that this class relies on SoLazyElement to store the Open Inventor color(s), etc. in the instance. This element keeps GL shadow copies of colors.

See Also:
  • Method Details

    • push

      public void push(SoState state)
      Overrides push() method to maintain GL state.
      Overrides:
      push in class SoLazyElement
    • getClassStackIndex

      @Deprecated(since="9.3.0.0") public static int getClassStackIndex()
      Deprecated.
      As of Open Inventor 9.3.0.0. replaced by SoElement.getClassStackIndex(Class)
      Returns the stack id for this element. ] *
    • pop

      public void pop(SoState state, SoElement prevTopElement)
      Overrides pop() method to maintain GL state.
      Overrides:
      pop in class SoElement
    • reset

      public void reset(SoState state, int bitmask)
      Destroys knowledge of GL state.
    • getInstance

      public static SoGLLazyElement getInstance(SoState state)
      Returns the top (current) instance of the element in the state Note it does NOT cause cache dependency! It also casts away the const.
    • sendDiffuseByIndex

      public void sendDiffuseByIndex(int index)
      Sends diffuse color and transparency, by index. Included for compatibility with SoMaterialBundle. To be used by a shape to send additional colors after first send(). Should NEVER be the first send of a shape!
    • sendOnlyDiffuseColor

      public static void sendOnlyDiffuseColor(SoState state)
      Static send, always send top-of-stack. Intended for extender use.
    • sendAllMaterial

      public static void sendAllMaterial(SoState state)
      Static send, always send top-of-stack. Intended for extender use.
    • sendNoMaterial

      public static void sendNoMaterial(SoState state)
      Static send, always send top-of-stack. Intended for extender use.