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 classBlendElementParameterspackages all the different blending parameters.static enumBlend Equation as defined by OpenGL's glBlendEquation.static enumBlendFactor 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 intDeprecated.As of Open Inventor 9.3.0.0.voidOverridepop()method to keep GL up to date.voidOverridepush()method to keep GL up to date.static voidset(SoState state, SoBlendElement.BlendElementParameters parameters) Sets the blending parameters.static voidsetBlending(SoState state, boolean enabled) Enable or disable blending.static voidsetFunction(SoState state, SoBlendElement.BlendFactors source, SoBlendElement.BlendFactors destination) Sets the blending function.Methods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndexMethods 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.
-