Enum Class SoTexture.Models

java.lang.Object
java.lang.Enum<SoTexture.Models>
com.openinventor.inventor.nodes.SoTexture.Models
All Implemented Interfaces:
IntegerValuedEnum, Serializable, Comparable<SoTexture.Models>, Constable
Enclosing class:
SoTexture

public static enum SoTexture.Models extends Enum<SoTexture.Models> implements IntegerValuedEnum
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 Constants
    Enum Constant
    Description
    Adds 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 Type
    Method
    Description
    int
    Returns the integer value of the enum constant.
    valueOf(int val)
    Returns the enum constant of this type with the specified integer value
    Returns the enum constant of this class with the specified name.
    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

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • 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 Details

    • values

      public static SoTexture.Models[] 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

      public static SoTexture.Models valueOf(String name)
      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 name
      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 interface IntegerValuedEnum
      Returns:
      the integer value of the enum constant.