Open Inventor Reference
SoTextureCoordinate2 Class Reference

2D texture coordinate node. More...

#include <Inventor/nodes/SoTextureCoordinate2.h>

Inheritance diagram for SoTextureCoordinate2:
SoNode SoFieldContainer SoBase

List of all members.

Public Member Functions

 SoTextureCoordinate2 ()
 Creates a texture coordinate node with default settings.
virtual void doAction (SoAction *action)
 This method performs the "typical" operation of a node for any action.
virtual void callback (SoCallbackAction *action)
virtual void GLRender (SoGLRenderAction *action)
 These virtual functions implement all of the actions for nodes, Most of the default implementations do nothing.
virtual void pick (SoPickAction *action)

Static Public Member Functions

static void initClass ()
 Initializes base node class.

Public Attributes

Fields
SoMFVec2f point
 Texture coordinate points.

Protected Member Functions

virtual ~SoTextureCoordinate2 ()

Protected Attributes

SoVBO_vbo

Detailed Description

This node defines a set of 2D coordinates to be used to map textures to subsequent vertex-based shapes (those derived from SoVertexShape). It 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 [  ]
}
Action Behavior
SoGLRenderAction, SoCallbackAction
Sets the current texture coordinates in the state.
See Also
SoTexture2, SoTextureCoordinateBinding, SoTextureCoordinateFunction, SoVertexShape

Definition at line 104 of file SoTextureCoordinate2.h.


Constructor & Destructor Documentation

SoTextureCoordinate2::SoTextureCoordinate2 ( )
virtual SoTextureCoordinate2::~SoTextureCoordinate2 ( ) [protected, virtual]

Member Function Documentation

virtual void SoTextureCoordinate2::callback ( SoCallbackAction action) [virtual]

Reimplemented from SoNode.

virtual void SoTextureCoordinate2::doAction ( SoAction action) [virtual]

The default implementation does nothing.

Reimplemented from SoNode.

virtual void SoTextureCoordinate2::GLRender ( SoGLRenderAction action) [virtual]

Reimplemented from SoNode.

static void SoTextureCoordinate2::initClass ( ) [static]

Reimplemented from SoNode.

virtual void SoTextureCoordinate2::pick ( SoPickAction action) [virtual]

Reimplemented from SoNode.


Member Data Documentation

Definition at line 132 of file SoTextureCoordinate2.h.


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