Class SoTextureCoordinate2

All Implemented Interfaces:
SafeDisposable

public class SoTextureCoordinate2 extends SoNode
2D texture coordinate node. This node defines a set of 2D coordinates to be used to map textures to subsequent vertex-based shapes (those derived from SoVertexShape). If you are using multiple textures, these texture coordinates apply to the current texture unit (SoTextureUnit). This node replaces the current texture coordinates in the rendering state for the shapes to use.

The current texture coordinate binding (see SoTextureCoordinateBinding) determines how texture coordinates are mapped to vertices of shapes. An alternative to using explicit texture coordinates is to generate them using a function; see SoTextureCoordinateFunction.

Texture coordinates range from 0 to 1 across the texture. The horizontal coordinate, called S, is specified first, followed by the vertical coordinate, T.

File format/default:

TextureCoordinate2 {

    point [ ]
    forceSending false
}

Action behavior:

SoGLRenderAction, SoCallbackAction
Sets the current texture coordinates in the state. Sets: SoTextureCoordinateElement

See Also:
  • Field Details Link icon

    • point Link icon

      public final SoMFVec2f point
      Texture coordinate points.
    • forceSending Link icon

      public final SoSFBool forceSending
      Forces the texture coordinates to be sent to OpenGL even if no texture is bound. Default is false. The default value can be set using the environment variable OIV_FORCE_TEX_COORD_SENDING. See SoPreferences.

      Since:
      Open Inventor 5.0.3

  • Constructor Details Link icon

    • SoTextureCoordinate2 Link icon

      public SoTextureCoordinate2()
      Creates a texture coordinate node with default settings.