Class SoBlendElement
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.elements.SoElement
com.openinventor.inventor.elements.SoBlendElement
Stores the current blending mode and parameters.
This element stores the current blending mode, including source and target factors for RGB and Alpha values, equation and color.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
BlendElementParameters
packages all the different blending parameters.static enum
Blend Equation as defined by OpenGL's glBlendEquation.static enum
BlendFactor as defined by OpenGL's glBlendFunc.Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the current blending parameters.static int
Deprecated.As of Open Inventor 9.3.0.0.void
Overridepop()
method to keep GL up to date.void
Overridepush()
method to keep GL up to date.static void
set
(SoState state, SoBlendElement.BlendElementParameters parameters) Sets the blending parameters.static void
setBlending
(SoState state, boolean enabled) Enable or disable blending.static void
setFunction
(SoState state, SoBlendElement.BlendFactors source, SoBlendElement.BlendFactors destination) Sets the blending function.Methods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndex
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Method Details
-
setFunction
public static void setFunction(SoState state, SoBlendElement.BlendFactors source, SoBlendElement.BlendFactors destination) Sets the blending function. Convenience function to shorten code only setting the blending function withput separating components. -
get
Retrieves the current blending parameters. -
setBlending
Enable or disable blending. -
set
Sets the blending parameters. -
push
Overridepush()
method to keep GL up to date. -
getClassStackIndex
Deprecated.As of Open Inventor 9.3.0.0. replaced by SoElement.getClassStackIndex(Class)Returns the stack id for this element. ] * -
pop
Overridepop()
method to keep GL up to date.
-