SOTEXTURECOORDINATECACHE(3coin3)

πŸ“¦ version 3.1.3, in fedora 43, fedora 44

πŸ’– SoTextureCoordinateCache πŸ’–

okay bestie, welcome to the SoTextureCoordinateCache(3) page β€” yes it's from the Library Functions Manual, yes it's giving very "I live inside Coin's caching layer," and yes we're gonna get through it together. grab a boba, this one's actually kinda cute once you see it. πŸ§‹βœ¨


🌸 NAME 🌸

SoTextureCoordinateCache β€” the girl whose whole job is holding onto texture coordinates for you. πŸ’…


✨ SYNOPSIS ✨

first things first, you gotta pull her in:

#include <Inventor/caches/SoTextureCoordinateCache.h>

and she Inherits SoCache, so everything SoCache can do, she can do too. nepo baby behavior but make it useful. πŸ‘‘

πŸŽ€ Public Member Functions πŸŽ€

here's her whole friend group (her actual methods):

  • SoTextureCoordinateCache (SoState *const state) β€” the constructor, her origin story.
  • virtual ~SoTextureCoordinateCache () β€” the destructor, her farewell tour.
  • void generate (const SbBox3f &bbox, const SbVec3f *vertices, const int numvertices) β€” makes the coords happen.
  • const SbVec2f * get (void) const β€” hands you the goods.
  • int getNum (void) const β€” tells you how many goods there are.

πŸ¦‹ Public Member Functions inherited from SoCache πŸ¦‹

these are the ones she got from her parent, still fully hers to use:

  • SoCache (SoState *const state)
  • void ref (void)
  • void unref (SoState *state=NULL)
  • void addElement (const SoElement *const elem)
  • virtual void addCacheDependency (const SoState *state, SoCache *cache)
  • virtual SbBool isValid (const SoState *state) const
  • const SoElement * getInvalidElement (const SoState *const state) const
  • void invalidate (void)

🌈 Additional Inherited Members 🌈

πŸ’œ Protected Member Functions inherited from SoCache

  • virtual void destroy (SoState *state)
  • virtual ~SoCache ()

πŸ‘‘ Detailed Description πŸ‘‘

The SoTextureCoordinateClass is used to cache generated texture coordinates. that's it, that's the whole vibe. she holds the receipts so nobody has to regenerate them. no cap. 🧾✨


πŸŽ€ Constructor & Destructor Documentation πŸŽ€

πŸ’– SoTextureCoordinateCache::SoTextureCoordinateCache (SoState *const state)

Constructor. her debut. 🌟

πŸ’– SoTextureCoordinateCache::~SoTextureCoordinateCache () [virtual]

Destructor. her goodbye. πŸ₯Ί


🌸 Member Function Documentation 🌸

✨ void SoTextureCoordinateCache::generate (const SbBox3f & bbox, const SbVec3f * vertices, const int numvertices)

Generates texture coordinates based on the bounding box of the geometry. bestie this is usually called default texture coordinates in OIV, so like, if you've ever wondered where the OIV defaults come from β€” hi, it's her. πŸ’…

✨ const SbVec2f * SoTextureCoordinateCache::get (void ) const

Returns the generated texture coordinates. the moment you've been waiting for, she delivers. 🫢

✨ int SoTextureCoordinateCache::getNum (void ) const

Returns the number of generated texture coordinates. she's also keeping count, because of course she is. πŸ”’


πŸ’œ Author πŸ’œ

Generated automatically by Doxygen for Coin from the source code. yes the robots wrote it, and honestly? they ate. πŸ€–βœ¨


okay that's the whole page, you understood it, I'm so proud of you. this was Coin, Version 3.1.3, and it's literally iconic. mwah. πŸ’‹πŸ’–πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from