Class SoBlendElement
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.elements.SoElement
-
- com.openinventor.inventor.elements.SoBlendElement
-
public class SoBlendElement extends SoElement
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 Classes Modifier and Type Class Description static classSoBlendElement.BlendElementParametersBlendElementParameterspackages all the different blending parameters.static classSoBlendElement.BlendEquationsBlend Equation as defined by OpenGL's glBlendEquation.static classSoBlendElement.BlendFactorsBlendFactor 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
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static SoBlendElement.BlendElementParametersget(SoState state)Retrieves the current blending parameters.static intgetClassStackIndex()Deprecated.As of Open Inventor 9300.voidpop(SoState state, SoElement prevTopElement)Overridepop()method to keep GL up to date.voidpush(SoState state)Overridepush()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
getClassStackIndex
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Method Detail
-
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
public static SoBlendElement.BlendElementParameters get(SoState state)
Retrieves the current blending parameters.
-
setBlending
public static void setBlending(SoState state, boolean enabled)
Enable or disable blending.
-
set
public static void set(SoState state, SoBlendElement.BlendElementParameters parameters)
Sets the blending parameters.
-
getClassStackIndex
@Deprecated public static int getClassStackIndex()
Deprecated.As of Open Inventor 9300. replaced by SoElement.getClassStackIndex(Class)Returns the stack id for this element. ] *
-
-