| 1 |
NAME SoTextureCoordinate2 SoTexCoord2 "" { 2D texture coordinate node } |
| 2 |
|
| 3 |
INCLUDE nodes/SoTextureCoordinate2.h |
| 4 |
|
| 5 |
DESC { |
| 6 |
This node defines a set of 2D coordinates to be used to map textures |
| 7 |
to subsequent vertex-based shapes (those derived from |
| 8 |
\cSoVertexShape\.). It replaces the current texture coordinates in the |
| 9 |
rendering state for the shapes to use. |
| 10 |
\p |
| 11 |
The current texture coordinate binding (see |
| 12 |
\cSoTextureCoordinateBinding\.) determines how texture coordinates are |
| 13 |
mapped to vertices of shapes. An alternative to using explicit texture |
| 14 |
coordinates is to generate them using a function; see |
| 15 |
\cSoTextureCoordinateFunction\.. |
| 16 |
\p |
| 17 |
Texture coordinates range from 0 to 1 across the texture. The |
| 18 |
horizontal coordinate, called \kS\., is specified first, followed by |
| 19 |
the vertical coordinate, \kT\.. |
| 20 |
} |
| 21 |
|
| 22 |
FIELD point { Texture coordinate points. } |
| 23 |
|
| 24 |
METHOD "" SoTextureCoordinate2() { |
| 25 |
Creates a texture coordinate node with default settings. |
| 26 |
} |
| 27 |
|
| 28 |
METHOD "" static SoType getClassTypeId() { |
| 29 |
Returns type identifier for this class. |
| 30 |
} |
| 31 |
|
| 32 |
ACTION SoGLRenderAction, SoCallbackAction { |
| 33 |
Sets the current texture coordinates in the state. |
| 34 |
} |
| 35 |
|
| 36 |
ALSO { |
| 37 |
SoTexture2, |
| 38 |
SoTextureCoordinateBinding, |
| 39 |
SoTextureCoordinateFunction, |
| 40 |
SoVertexShape |
| 41 |
} |