SOTEXTURECOORDINATEBUNDLE(3coin3)
π SoTextureC...inateBundle(3) π
okay bestie, welcome to the Library Functions Manual section of the Coin docs π this is the whole tea on SoTextureCoordinateBundle, no cap.
β¨ NAME β¨
SoTextureCoordinateBundle β the class that simplifies texture coordinate handling. it's giving "let me handle the coords so you don't have to" π
π¦ SYNOPSIS π¦
#include <include/Inventor/bundles/SoTextureCoordinateBundle.h>
Inherits SoBundle.
πΈ Public Member Functions πΈ
SoTextureCoordinateBundle (SoAction *const action, const SbBool forRendering, const SbBool setUpDefault=TRUE)~SoTextureCoordinateBundle ()SbBool needCoordinates (void) constSbBool isFunction (void) constconst SbVec4f & get (const int index)const SbVec4f & get (const SbVec3f &point, const SbVec3f &normal)void send (const int index) constvoid send (const int index, const SbVec3f &point, const SbVec3f &normal) constSbBool needIndices (void) const
π Additional Inherited Members π
Protected Member Functions inherited from SoBundle
SoBundle (SoAction *action)~SoBundle ()
Protected Attributes inherited from SoBundle
SoState * stateβ the state of the current action. literally the whole vibe of what's happening right now β¨
π Detailed Description π
The SoTextureCoordinateBundle class simplifies texture coordinate handling. that's the whole job bestie, and it does it slayfully π«Ά
ngl, it is unlikely that application programmers should need to know how to use this class, because it is mostly intended for internal use. so if you're just out here writing apps, this is lowkey not your moment β it's a backstage pass kinda situation π
π§ Constructor & Destructor Documentation π§
SoTextureCoordinateBundle::SoTextureCoordinateBundle (SoAction *const action, const SbBool forRendering, const SbBool setUpDefault = TRUE)
Constructor, with action being the action applied to the node. so like, the action is the main character here π
The forRendering parameter must be TRUE if the bundle is to be used for sending texture coordinates to GL during rendering. and the setUpDefault must be TRUE if default texture coordinates should be generated. no skipping this, fr fr β
SoTextureCoordinateBundle::~SoTextureCoordinateBundle ()
Destructor. it's the goodbye era π
π Member Function Documentation π
SbBool SoTextureCoordinateBundle::needCoordinates (void ) const
Returns TRUE if texture coordinates is needed during rendering. vibe check on whether we even need these coords π₯
SbBool SoTextureCoordinateBundle::isFunction (void ) const
Returns TRUE if a texture coordinate function should be used. so like, are we doing the function thing or not π
const SbVec4f & SoTextureCoordinateBundle::get (const int index)
Returns the texture coordinates at index index. should only be used if SoTextureCoordinateBundle::isFunction() is FALSE. read the room, check the function flag first bestie π
const SbVec4f & SoTextureCoordinateBundle::get (const SbVec3f & point, const SbVec3f & normal)
Returns the texture coordinates based on point and normal. should only be used if SoTextureCoordinateBundle::isFunction() is TRUE. yes it's the opposite of the other one, i know, that's the plot twist π
void SoTextureCoordinateBundle::send (const int index) const [inline]
Send texture coordinates to GL. should only be used if SoTextureCoordinateBundle::isFunction() is FALSE. sending it straight to GL, periodt π«
void SoTextureCoordinateBundle::send (const int index, const SbVec3f & point, const SbVec3f & normal) const [inline]
A convenience function that will make it transparent to the rendering code if ordinary texture coordinates or function texture coordinates are used. so the rendering code literally cannot tell the difference β iconic behaviour, honestly π
SbBool SoTextureCoordinateBundle::needIndices (void ) const
Returns TRUE if isFunction() is TRUE, but the texture coordinate indices are needed either by bump mapping or by one of the other texture units. so many moving parts, she's doing the most π
Since
Coin 2.2
π Author π
Generated automatically by Doxygen for Coin from the source code. (yes, a robot wrote this, and it ate π€β¨)
okay that's the whole page bestie, we got through it together π₯Ήπ this was Coin, Version 3.1.3 β mwah, love u, go texture some coordinates responsibly ππ¦πΈ
π¦ where this page comes from
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms