SoGLRenderCache(3)

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

πŸ’– SoGLRenderCache(3) πŸ’–

okay bestie, welcome to the Library Functions Manual page for SoGLRenderCache, and honestly? she's iconic. she caches OpenGL calls. that's her whole thing. let's get into it ✨


🌸 NAME 🌸

SoGLRenderCache β€” the class that is used to cache OpenGL calls. that's it, that's the vibe. no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <Inventor/caches/SoGLRenderCache.h>

Inherits SoCache. yes she comes from a whole lineage, generational wealth of caching πŸ’…

⭐ Public Member Functions ⭐

SoGLRenderCache (SoState *state)
virtual ~SoGLRenderCache ()
void open (SoState *state)
void close (void)
void call (SoState *state)
int getCacheContext (void) const
virtual SbBool isValid (const SoState *state) const
virtual void addNestedCache (SoGLDisplayList *child)
SoGLLazyElement::GLState * getPreLazyState (void)
SoGLLazyElement::GLState * getPostLazyState (void)

🧚 Public Member Functions inherited from SoCache 🧚

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)
const SoElement * getInvalidElement (const SoState *const state) const
void invalidate (void)

πŸ’œ Protected Member Functions πŸ’œ

virtual void destroy (SoState *state)

πŸŽ€ Protected Member Functions inherited from SoCache πŸŽ€

virtual ~SoCache ()

🌈 Detailed Description 🌈

The SoGLRenderCache class is used to cache OpenGL calls. that's the whole assignment, and she ate. πŸ”₯


✨ Constructor & Destructor Documentation ✨

πŸ“ SoGLRenderCache::SoGLRenderCache (SoState * state)

Constructor, with state being the current state. she's born knowing exactly where she is, main character energy fr fr πŸ‘‘

πŸ’€ SoGLRenderCache::~SoGLRenderCache () [virtual]

Destructor. she said goodbye, respectfully. 🫢


πŸ‘‘ Member Function Documentation πŸ‘‘

🌸 void SoGLRenderCache::open (SoState * state)

Opens the cache. All GL calls will be cached until close() is called. like, every single one. the doors are open, bestie, come on in πŸšͺ✨

See also

  • close()
  • call()

πŸ¦‹ void SoGLRenderCache::close (void )

Closes the cache. Should be called after all GL calls. shut the door behind you, we're done collecting πŸšͺπŸ’…

See also

  • open()

⭐ void SoGLRenderCache::call (SoState * state)

Executes the cached display list. she's been holding onto all those GL calls and now she's serving them πŸ”₯

See also

  • open()

πŸŽ€ int SoGLRenderCache::getCacheContext (void ) const

Returns the cache context of this cache. This is used to quickly determine if cache can be used for a state.

This method is an extension versus the Open Inventor API. yes she's an extension, she's doing things the standard API could never 😌

πŸ’œ SbBool SoGLRenderCache::isValid (const SoState * state) const [virtual]

Return TRUE if this cache is valid, FALSE otherwise. vibe check: passed or not passed, no in-between 🫑

Reimplemented from SoCache.

🧚 void SoGLRenderCache::addNestedCache (SoGLDisplayList * child) [virtual]

Adds a display list which is called from this cache. This is to make sure the child display list isn't destroyed too early. she's a protective mom, she's not letting the baby get deleted prematurely, no ma'am πŸ₯Ί

🌈 void SoGLRenderCache::destroy (SoState * state) [protected], [virtual]

Can be overridden by subclasses to clean up before they are deleted. Default method does nothing. so if you don't override it, she just… stands there. respectfully. doing absolutely nothing πŸ’€

Reimplemented from SoCache.


🌟 Author 🌟

Generated automatically by Doxygen for Coin from the source code. not a human author, just a robot doing her little robot job πŸ€–βœ¨


okay that's the whole page bestie, you're officially fluent in SoGLRenderCache πŸ’–

signing off: this was brought to you by Coin, Version 3.1.3 β€” and yes, the page itself is literally named SoGLRenderCache(3), we came full circle πŸŽ€ bye pookie, go cache something πŸ¦‹

πŸ“¦ where this page comes from