Package com.openinventor.inventor.nodes
Class SoTextureCoordinate2
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.misc.SoBase
-
- com.openinventor.inventor.fields.SoFieldContainer
-
- com.openinventor.inventor.nodes.SoNode
-
- com.openinventor.inventor.nodes.SoTextureCoordinate2
-
- All Implemented Interfaces:
SafeDisposable
public class SoTextureCoordinate2 extends SoNode
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 fromSoVertexShape
). 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; seeSoTextureCoordinateFunction
.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 [ ] forceSending false Action behavior:
SoGLRenderAction
,SoCallbackAction
Sets the current texture coordinates in the state. Sets:SoTextureCoordinateElement
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoNode
SoNode.RenderModes
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
Fields Modifier and Type Field Description SoSFBool
forceSending
Forces the texture coordinates to be sent to OpenGL even if no texture is bound.SoMFVec2f
point
Texture coordinate points.-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoTextureCoordinate2()
Creates a texture coordinate node with default settings.
-
Method Summary
-
Methods inherited from class com.openinventor.inventor.nodes.SoNode
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderEngineMode, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
-
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
-
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
-
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
-
-
-
Field Detail
-
point
public final SoMFVec2f point
Texture coordinate points.
-
forceSending
public final SoSFBool forceSending
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. SeeSoPreferences
.- Since:
- Open Inventor 5.0.3
-
-