.TH "SoTextureCoordinateBundle" 3 "Tue Dec 26 2023 17:59:22" "Version 4.0.2" "Coin" \" -*- nroff -*- .ad l .nh .SH NAME SoTextureCoordinateBundle \- The \fBSoTextureCoordinateBundle\fP class simplifies texture coordinate handling\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBSoBundle\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBSoTextureCoordinateBundle\fP (\fBSoAction\fP *\fBconst\fP action, \fBconst\fP SbBool \fBforRendering\fP, \fBconst\fP SbBool \fBsetUpDefault\fP=TRUE)" .br .ti -1c .RI "\fB~SoTextureCoordinateBundle\fP ()" .br .ti -1c .RI "SbBool \fBneedCoordinates\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "SbBool \fBisFunction\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBconst\fP \fBSbVec4f\fP & \fBget\fP (\fBconst\fP int index)" .br .ti -1c .RI "\fBconst\fP \fBSbVec4f\fP & \fBget\fP (\fBconst\fP \fBSbVec3f\fP &point, \fBconst\fP \fBSbVec3f\fP &normal)" .br .ti -1c .RI "\fBvoid\fP \fBsend\fP (\fBconst\fP int index) \fBconst\fP" .br .ti -1c .RI "\fBvoid\fP \fBsend\fP (\fBconst\fP int index, \fBconst\fP \fBSbVec3f\fP &point, \fBconst\fP \fBSbVec3f\fP &normal) \fBconst\fP" .br .ti -1c .RI "SbBool \fBneedIndices\fP (\fBvoid\fP) \fBconst\fP" .br .in -1c .SS "Additional Inherited Members" Protected Member Functions inherited from \fBSoBundle\fP .in +1c .ti -1c .RI "\fBSoBundle\fP (\fBSoAction\fP *action)" .br .ti -1c .RI "\fB~SoBundle\fP ()" .br .in -1c Protected Attributes inherited from \fBSoBundle\fP .in +1c .ti -1c .RI "\fBSoState\fP * \fBstate\fP" .br .RI "The state of the current action\&. " .in -1c .SH "Detailed Description" .PP The \fBSoTextureCoordinateBundle\fP class simplifies texture coordinate handling\&. It is unlikely that application programmers should need to know how to use this class, as it is mostly intended for internal use\&. .SH "Constructor & Destructor Documentation" .PP .SS "SoTextureCoordinateBundle::SoTextureCoordinateBundle (\fBSoAction\fP *\fBconst\fP action, \fBconst\fP SbBool forRendering, \fBconst\fP SbBool setUpDefault = \fCTRUE\fP)" Constructor with \fIaction\fP being the action applied to the node\&. The \fIforRendering\fP parameter must be \fITRUE\fP if the bundle is to be used for sending texture coordinates to GL during rendering\&. The \fIsetUpDefault\fP must be \fITRUE\fP if default texture coordinates should be generated\&. .SS "SoTextureCoordinateBundle::~SoTextureCoordinateBundle ()" Destructor\&. .SH "Member Function Documentation" .PP .SS "SbBool SoTextureCoordinateBundle::needCoordinates (\fBvoid\fP) const" Returns \fITRUE\fP if texture coordinates are needed during rendering\&. .SS "SbBool SoTextureCoordinateBundle::isFunction (\fBvoid\fP) const" Returns \fITRUE\fP if a texture coordinate function should be used\&. .SS "\fBconst\fP \fBSbVec4f\fP & SoTextureCoordinateBundle::get (\fBconst\fP int index)" Returns the texture coordinates at index \fIindex\fP\&. Should only be used if \fBSoTextureCoordinateBundle::isFunction()\fP is \fIFALSE\fP\&. .SS "\fBconst\fP \fBSbVec4f\fP & SoTextureCoordinateBundle::get (\fBconst\fP \fBSbVec3f\fP & point, \fBconst\fP \fBSbVec3f\fP & normal)" Returns the texture coordinates based on \fIpoint\fP and \fInormal\fP\&. Should only be used if \fBSoTextureCoordinateBundle::isFunction()\fP is \fITRUE\fP\&. .SS "\fBvoid\fP SoTextureCoordinateBundle::send (\fBconst\fP int index) const\fC [inline]\fP" Send texture coordinates to GL\&. Should only be used if \fBSoTextureCoordinateBundle::isFunction()\fP is \fIFALSE\fP\&. .SS "\fBvoid\fP SoTextureCoordinateBundle::send (\fBconst\fP int index, \fBconst\fP \fBSbVec3f\fP & point, \fBconst\fP \fBSbVec3f\fP & normal) const\fC [inline]\fP" Convenience function that will make it transparent to the rendering code if ordinary texture coordinates or function texture coordinates are used\&. .SS "SbBool SoTextureCoordinateBundle::needIndices (\fBvoid\fP) const" Returns \fITRUE\fP if \fBisFunction()\fP is \fITRUE\fP, but the texture coordinate indices are needed either by bump mapping or by one of the other texture units\&. .PP \fBSince\fP .RS 4 Coin \fB2\&.2\fP .RE .PP .SH "Author" .PP Generated automatically by Doxygen for Coin from the source code\&.