2D texture coordinate node. More...
#include <Inventor/nodes/SoTextureCoordinate2.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoTextureCoordinate2 () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoMFVec2f | point |
SoSFBool | forceSending |
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.
point | [ ] |
forceSending | FALSE |
SoTexture2, SoTextureCoordinateBinding, SoTextureCoordinateFunction, SoTextureUnit, SoVertexProperty, SoVertexShape
SoTextureCoordinate2::SoTextureCoordinate2 | ( | ) |
Creates a texture coordinate node with default settings.
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.
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.3Texture coordinate points.