logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SoTextureCoordinate2 — 2D texture coordinate node

Action Behavior

SoGLRenderAction,SoCallbackAction
          Sets the current texture coordinates in the state.

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.

Fields

SoMFVec2fpoint
          Texture coordinate points.

File Format/Defaults

TextureCoordinate2{point[]}

Inherits From

       SoBase > SoFieldContainer > SoNode > SoTextureCoordinate2

Methods

SoTextureCoordinate2()
          Creates a texture coordinate node with default settings.

     staticSoTypegetClassTypeId()
          Returns type identifier for this class.

Name

       SoTextureCoordinate2 — 2D texture coordinate node

See Also

SoTexture2,SoTextureCoordinateBinding,SoTextureCoordinateFunction,SoVertexShapeSoTextureCoordinate2(3IV)()

Synopsis

#include<Inventor/nodes/SoTextureCoordinate2.h>

          Fields from class SoTextureCoordinate2:

     SoMFVec2fpoint

          Methods from class SoTextureCoordinate2:

                         SoTextureCoordinate2()staticSoTypegetClassTypeId()

          Methods from class SoNode:

     voidsetOverride(SbBoolstate)SbBoolisOverride()constSoNode*copy(SbBoolcopyConnections=FALSE)constvirtualSbBoolaffectsState()conststaticSoNode*getByName(constSbName&name)staticintgetByName(constSbName&name,SoNodeList&list)

          Methods from class SoFieldContainer:

     voidsetToDefaults()SbBoolhasDefaultValues()constSbBoolfieldsAreEqual(constSoFieldContainer*fc)constvoidcopyFieldValues(constSoFieldContainer*fc,SbBoolcopyConnections=FALSE)SbBoolset(constchar*fieldDataString)voidget(SbString&fieldDataString)virtualintgetFields(SoFieldList&resultList)constvirtualSoField*getField(constSbName&fieldName)constSbBoolgetFieldName(constSoField*field,SbName&fieldName)constSbBoolisNotifyEnabled()constSbBoolenableNotify(SbBoolflag)

          Methods from class SoBase:

     voidref()voidunref()constvoidunrefNoDelete()constvoidtouch()virtualSoTypegetTypeId()constSbBoolisOfType(SoTypetype)constvirtualvoidsetName(constSbName&name)virtualSbNamegetName()const

See Also