Package com.openinventor.inventor.nodes
Enum Class SoTexture.Models
- All Implemented Interfaces:
IntegerValuedEnum
,Serializable
,Comparable<SoTexture.Models>
,Constable
- Enclosing class:
SoTexture
Texture Combiner Functions.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAdds incoming fragment and texture source colors.Blends between the surface color and a specified blend color.Provides a wide range of programmable combiner functions using the incoming fragment color, texture source color, texture constant color, and the result of the previous texture environment stage as possible parameters.In this mode, OpenGL requires that the specified texture image have either 3 or 4 components.The texture color is multiplied by the surface color.The texture color replaces the surface color. -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
Returns the integer value of the enum constant.static SoTexture.Models
valueOf
(int val) Returns the enum constant of this type with the specified integer valuestatic SoTexture.Models
Returns the enum constant of this class with the specified name.static SoTexture.Models[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
MODULATE
The texture color is multiplied by the surface color. -
DECAL
In this mode, OpenGL requires that the specified texture image have either 3 or 4 components. For a 3-component texture, the texture color replaces the surface color. For a 4-component texture, the texture color is blended with the surface color using the texture alpha value. See OpenGL documentation on glTexEnv for details. -
BLEND
Blends between the surface color and a specified blend color. -
REPLACE
The texture color replaces the surface color.- Since:
- Open Inventor 4.0
-
ADD
Adds incoming fragment and texture source colors.- Since:
- Open Inventor 5.0
-
COMBINE
Provides a wide range of programmable combiner functions using the incoming fragment color, texture source color, texture constant color, and the result of the previous texture environment stage as possible parameters.- Since:
- Open Inventor 5.0
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
valueOf
Returns the enum constant of this type with the specified integer value- Returns:
- the enum constant of this type with the specified integer value.
-
getValue
public int getValue()Description copied from interface:IntegerValuedEnum
Returns the integer value of the enum constant.- Specified by:
getValue
in interfaceIntegerValuedEnum
- Returns:
- the integer value of the enum constant.
-