SOTEXTURECOORDINATECACHE(3coin3)
π 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) constconst SoElement * getInvalidElement(const SoState *const state) constvoid 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
- 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