SoTextureCoordinateBundle(3)
π SoTextureCoordinateBundle π
okay so this is a page straight outta the Coin manual, section 3 (that's what the (3) is doing there, bestie, it's the library-functions girlies section). It's giving very much "internal plumbing that eats" and I'm obsessed. Let's get into it π«Ά
πΈ NAME πΈ
SoTextureCoordinateBundle β the class that makes texture coordinate handling so much simpler. Periodt.
β¨ SYNOPSIS β¨
#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 π
things it got from its parent, no notes:
- Protected Member Functions inherited from
SoBundle:SoBundle(SoAction *action)~SoBundle()
- Protected Attributes inherited from
SoBundle:SoState * stateβ literally just the state of the current action, that's it, that's the vibe.
π¦ Detailed Description π¦
SoTextureCoordinateBundle is the class that simplifies texture coordinate handling. iconic behaviour honestly.
lowkey real talk though: if you're an application programmer you probs never need to know how to use this. It's mostly meant for internal use. So likeβ¦ admire it from afar, bestie π
π Constructor & Destructor Documentation π
π SoTextureCoordinateBundle::SoTextureCoordinateBundle(SoAction *const action, const SbBool forRendering, const SbBool setUpDefault = TRUE)
Constructor time!! Here's the tea:
- action is the action that gets applied to the node.
- forRendering must be
TRUEif this bundle is gonna be used for sending texture coordinates to GL during rendering. If that's your plan and this isn'tTRUE, it's not giving what it needs to give. - setUpDefault must be
TRUEif you want default texture coordinates generated. Default texture coords? only if you ask nicely, babe.
π§ SoTextureCoordinateBundle::~SoTextureCoordinateBundle()
Destructor. It cleans up. bye bestie π«Ά
β Member Function Documentation β
πΈ SbBool SoTextureCoordinateBundle::needCoordinates(void) const
Returns TRUE if texture coordinates are actually needed during rendering. Slay.
π¦ SbBool SoTextureCoordinateBundle::isFunction(void) const
Returns TRUE if a texture coordinate function should be used. iykyk.
π const SbVec4f & SoTextureCoordinateBundle::get(const int index)
Returns the texture coordinates sitting at index index.
β οΈ Only use this one ifSoTextureCoordinateBundle::isFunction()isFALSE. Don't mix it up, it will not be cute.
π const SbVec4f & SoTextureCoordinateBundle::get(const SbVec3f & point, const SbVec3f & normal)
Returns the texture coordinates based on point and normal.
β οΈ And only use this one ifSoTextureCoordinateBundle::isFunction()isTRUE. Twogets, two moods, don't cross the streams β¨
π void SoTextureCoordinateBundle::send(const int index) const [inline]
Sends texture coordinates to GL.
β οΈ Only ifSoTextureCoordinateBundle::isFunction()isFALSE, queen. Same rule as before.
π void SoTextureCoordinateBundle::send(const int index, const SbVec3f & point, const SbVec3f & normal) const [inline]
A lil convenience function that keeps it fully transparent to the rendering code whether ordinary texture coordinates or function texture coordinates are in play. main character energy β the rendering code doesn't even need to know which one it got π
π 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. The way that it needs indices for reasons beyond just the function⦠so valid.
Since
Coin 2.2 β been serving since 2.2 fr fr.
π Author π
Generated automatically by Doxygen for Coin from the source code. not a human writing this one, it's the robot diva herself, and she ate π
and that's the whole page, bestie!! this was Coin version 4.0.10, dated Thu Jun 25 2026 β remember it, love it, cite it in your bug report, mwah πβ¨π
π¦ where this page comes from
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms