Package com.openinventor.inventor.nodes
Enum SoTexture.Models
- java.lang.Object
-
- java.lang.Enum<SoTexture.Models>
-
- com.openinventor.inventor.nodes.SoTexture.Models
-
- All Implemented Interfaces:
IntegerValuedEnum
,java.io.Serializable
,java.lang.Comparable<SoTexture.Models>
- Enclosing class:
- SoTexture
public static enum SoTexture.Models extends java.lang.Enum<SoTexture.Models> implements IntegerValuedEnum
Texture Combiner Functions.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADD
Adds incoming fragment and texture source colors.BLEND
Blends between the surface color and a specified blend color.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.DECAL
In this mode, OpenGL requires that the specified texture image have either 3 or 4 components.MODULATE
The texture color is multiplied by the surface color.REPLACE
The texture color replaces the surface color.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
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
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SoTexture.Models[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MODULATE
public static final SoTexture.Models MODULATE
The texture color is multiplied by the surface color.
-
DECAL
public static final SoTexture.Models 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
public static final SoTexture.Models BLEND
Blends between the surface color and a specified blend color.
-
REPLACE
public static final SoTexture.Models REPLACE
The texture color replaces the surface color.- Since:
- Open Inventor 4.0
-
ADD
public static final SoTexture.Models ADD
Adds incoming fragment and texture source colors.- Since:
- Open Inventor 5.0
-
COMBINE
public static final SoTexture.Models 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 Detail
-
values
public static SoTexture.Models[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SoTexture.Models c : SoTexture.Models.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SoTexture.Models valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
valueOf
public static SoTexture.Models valueOf(int val)
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.
-
-