SoTextureCoordinateBundle(3)

πŸ“¦
version 4.0.10 Β· 4 versions
, in fedora 43, fedora 44

πŸ’– 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) const
  • SbBool isFunction(void) const
  • const SbVec4f & get(const int index)
  • const SbVec4f & get(const SbVec3f &point, const SbVec3f &normal)
  • void send(const int index) const
  • void send(const int index, const SbVec3f &point, const SbVec3f &normal) const
  • SbBool 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 TRUE if this bundle is gonna be used for sending texture coordinates to GL during rendering. If that's your plan and this isn't TRUE, it's not giving what it needs to give.
  • setUpDefault must be TRUE if 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 if SoTextureCoordinateBundle::isFunction() is FALSE. 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 if SoTextureCoordinateBundle::isFunction() is TRUE. Two gets, two moods, don't cross the streams ✨

🌈 void SoTextureCoordinateBundle::send(const int index) const [inline]

Sends texture coordinates to GL.

⚠️ Only if SoTextureCoordinateBundle::isFunction() is FALSE, 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