Class SoShaderProgramElement


public class SoShaderProgramElement extends SoReplacedElement
Stores the current shader program. This element stores the current shader program.

See Also:
  • Method Details

    • 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. ] *
    • push

      public void push(SoState name_21099)
      Overrides push() method so side effects can occur in GL.
      Overrides:
      push in class SoElement
    • set

      public static void set(SoState state, SoNode node)
      Sets the current shader program in the state.
    • pop

      public void pop(SoState state, SoElement prevTopElement)
      Overrides pop() method so side effects can occur in GL.
      Overrides:
      pop in class SoElement
    • get

      public static SoShaderProgram get(SoState state)
      Gets the current shader program in the state.