Open Inventor Reference
|
2D texture coordinate node. More...
#include <Inventor/nodes/SoTextureCoordinate2.h>
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 |
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
.
TextureCoordinate2 { point [ ] }
Definition at line 104 of file SoTextureCoordinate2.h.
SoTextureCoordinate2::SoTextureCoordinate2 | ( | ) |
virtual SoTextureCoordinate2::~SoTextureCoordinate2 | ( | ) | [protected, virtual] |
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.
SoVBO* SoTextureCoordinate2::_vbo [protected] |
Definition at line 132 of file SoTextureCoordinate2.h.
Definition at line 113 of file SoTextureCoordinate2.h.