SoTextureCoordinate2 Class Reference
[Textures]

2D texture coordinate node. More...

#include <Inventor/nodes/SoTextureCoordinate2.h>

Inheritance diagram for SoTextureCoordinate2:
SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Member Functions

virtual SoType getTypeId () const
 SoTextureCoordinate2 ()

Static Public Member Functions

static SoType getClassTypeId ()

Public Attributes

SoMFVec2f point
SoSFBool forceSending

Detailed Description

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

ACTION BEHAVIOR

SEE ALSO

SoTexture2, SoTextureCoordinateBinding, SoTextureCoordinateFunction, SoTextureUnit, SoVertexProperty, SoVertexShape


Constructor & Destructor Documentation

SoTextureCoordinate2::SoTextureCoordinate2 (  ) 

Creates a texture coordinate node with default settings.


Member Function Documentation

static SoType SoTextureCoordinate2::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoNode.

virtual SoType SoTextureCoordinate2::getTypeId (  )  const [virtual]

Returns the type identifier for this specific instance.

Reimplemented from SoNode.


Member Data Documentation

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.

NOTE: field available since Open Inventor 5.0.3

Texture coordinate points.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 4 Sep 2023
Copyright © Thermo Fisher Scientific All rights reserved.
https://www.openinventor.com/