SoGLCacheContextElement - Online Linux Manual PageSection : 3
Updated : Mon Jan 25 2021
Source : Version 4.0.0
Note : Coin
NAMESoGLCacheContextElement − The SoGLCacheContextElement class handles the OpenGL cache for a context.
SYNOPSIS
#include <Inventor/elements/SoGLCacheContextElement.h> Inherits SoElement.
Public Typesenum { DO_AUTO_CACHE = 1, DONT_AUTO_CACHE }
Public Member Functionsvirtual void init (SoState *state)
virtual SbBool matches (const SoElement *elt) const
virtual SoElement * copyMatchInfo (void) const
Static Public Member Functionsstatic SoType getClassTypeId (void)
static int getClassStackIndex (void)
static void * createInstance (void)
static void initClass (void)
static void set (SoState *state, int context, SbBool twopasstransparency, SbBool remoterendering)
static int get (SoState *state)
static int getExtID (const char *str)
static void getOpenGLVersion (SoState *state, int &major, int &minor)
static SbBool extSupported (SoState *state, int extid)
static SbBool areMipMapsFast (SoState *state)
static void shouldAutoCache (SoState *state, int bits)
static void setAutoCacheBits (SoState *state, int bits)
static int resetAutoCacheBits (SoState *state)
static SbBool getIsRemoteRendering (SoState *state)
static uint32_t getUniqueCacheContext (void)
static void scheduleDeleteCallback (const uint32_t contextid, SoScheduleDeleteCB *cb, void *closure)
static void incNumShapes (SoState *state)
static int getNumShapes (SoState *state)
static void incNumSeparators (SoState *state)
static int getNumSeparators (SoState *state)
Protected Member Functionsvirtual ~SoGLCacheContextElement ()
Additional Inherited Members
Detailed DescriptionThe SoGLCacheContextElement class handles the OpenGL cache for a context.
Constructor & Destructor Documentation
SoGLCacheContextElement::~SoGLCacheContextElement () [protected], [virtual]Destructor.
Member Function Documentation
void * SoGLCacheContextElement::createInstance (void) [static]This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
void SoGLCacheContextElement::init (SoState * state) [virtual]This function initializes the element type in the given SoState. It is called for the first element of each enabled element type in SoState objects. Reimplemented from SoElement.
SbBool SoGLCacheContextElement::matches (const SoElement * element) const [virtual]This function returns TRUE is the element matches another element (of the same class), with respect to cache validity. If the application programmer's extension element has a matches() function, it should also have a copyMatchInfo() function. Implements SoElement.
SoElement * SoGLCacheContextElement::copyMatchInfo (void) const [virtual]This function creates a copy of the element that contains enough information to enable the matches() function to work. Used to help with scenegraph traversal caching operations. Implements SoElement.
void SoGLCacheContextElement::set (SoState * state, int context, SbBool twopasstransparency, SbBool remoterendering) [static]Sets data for context.
int SoGLCacheContextElement::get (SoState * state) [static]Returns context id. Note that the signature on this function is slightly wrong: the function should really return an uint32_t, like SoGLRenderAction::getCacheContext() does. It is kept like this for compatibility reasons. The value returned will always be a positive integer.
int SoGLCacheContextElement::getExtID (const char * str) [static]Returns an extension id based on the GL extension string. The extension id can be used to quickly test for the availability of an extension later, using extSupported().
void SoGLCacheContextElement::getOpenGLVersion (SoState * state, int & major, int & minor) [static]Returns the OpenGL version for the current context. This method is an extension versus the Open Inventor API.
SbBool SoGLCacheContextElement::extSupported (SoState * state, int extid) [static]Returns TRUE if the extension is supported for the current context. extid must be an id returned from getExtId(). The test result is cached so this method is pretty fast and can be used run-time.
SbBool SoGLCacheContextElement::areMipMapsFast (SoState * state) [static]Returns if mipmapped textures are fast for the current context. In Coin, we just return TRUE for the moment.
void SoGLCacheContextElement::shouldAutoCache (SoState * state, int bits) [static]Update auto cache bits.
void SoGLCacheContextElement::setAutoCacheBits (SoState * state, int bits) [static]Sets the auto cache bits.
int SoGLCacheContextElement::resetAutoCacheBits (SoState * state) [static]Not properly supported yet.
SbBool SoGLCacheContextElement::getIsRemoteRendering (SoState * state) [static]Returns TRUE if rendering is indirect / remote.
uint32_t SoGLCacheContextElement::getUniqueCacheContext (void) [static]Returns an unique cache context id, in the range [1, ->. If you render the same scene graph into two or different cache contexts, and you've not using display list and texture object sharing among contexts, the cache context id need to be unique for rendering to work. This function is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API.
See also SoGLRenderAction::setCacheContext()
void SoGLCacheContextElement::scheduleDeleteCallback (const uint32_t contextid, SoScheduleDeleteCB * cb, void * closure) [static]Can be used to receive a callback the next time Coin knows that the context (specified by contextid) is the current OpenGL context. This function can be used to free OpenGL resources for a context. Note that the callback will be invoked only once, and then removed from the internal list of scheduled callbacks. Since Coin 2.3
void SoGLCacheContextElement::incNumShapes (SoState * state) [static]Increment the number of shapes in a open cache. Since Coin 3.0
int SoGLCacheContextElement::getNumShapes (SoState * state) [static]Returns the number of shapes in an open cache. Since Coin 3.0
void SoGLCacheContextElement::incNumSeparators (SoState * state) [static]Increment the number of separators in an open cache. Since Coin 3.0
int SoGLCacheContextElement::getNumSeparators (SoState * state) [static]Returns the number of separators in an open cache. Since Coin 3.0
AuthorGenerated automatically by Doxygen for Coin from the source code. 0
Johanes Gumabo
Data Size : 34,777 byte
man-SoGLCacheContextElement.3coin4Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 2 / 202,210
Visitor ID : :
Visitor IP : 3.145.65.133 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.