Coin
4.0.3
Coin3D core library
|
The SoGLCacheContextElement class handles the OpenGL cache for a context. More...
#include <Inventor/elements/SoGLCacheContextElement.h>
Public Types | |
enum | { DO_AUTO_CACHE = 1 , DONT_AUTO_CACHE } |
Public Member Functions | |
virtual SoElement * | copyMatchInfo (void) const |
virtual void | init (SoState *state) |
virtual SbBool | matches (const SoElement *elt) const |
Public Member Functions inherited from SoElement | |
virtual | ~SoElement () |
int | getDepth (void) const |
int | getStackIndex (void) const |
const SoType | getTypeId (void) const |
virtual void | pop (SoState *state, const SoElement *prevTopElement) |
virtual void | print (FILE *file=stdout) const |
virtual void | push (SoState *state) |
void | setDepth (const int depth) |
Protected Member Functions | |
virtual | ~SoGLCacheContextElement () |
Protected Member Functions inherited from SoElement | |
SoElement (void) | |
void | capture (SoState *const state) const |
virtual void | captureThis (SoState *state) const |
SoElement * | getNextFree (void) const |
SoElement * | getNextInStack (void) const |
void | setStackIndex (const int index) |
void | setTypeId (const SoType typeId) |
Additional Inherited Members | |
Static Protected Member Functions inherited from SoElement | |
static int | createStackIndex (const SoType id) |
static const SoElement * | getConstElement (SoState *const state, const int stackIndex) |
static SoElement * | getElement (SoState *const state, const int stackIndex) |
Protected Attributes inherited from SoElement | |
int | depth |
int | stackIndex |
SoType | typeId |
Static Protected Attributes inherited from SoElement | |
static int | classStackIndex |
static SoTypeList * | stackToType |
The SoGLCacheContextElement class handles the OpenGL cache for a context.
|
protectedvirtual |
Destructor.
|
static |
Returns if mipmapped textures are fast for the current context. In Coin, we just return TRUE for the moment.
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Creates a new instance of the class type corresponding to the SoType object.
|
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 at runtime.
|
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.
|
static |
This static method returns the state stack index for the class.
This static method returns the SoType object associated with objects of this class.
|
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().
|
static |
Returns TRUE
if rendering is indirect / remote.
|
static |
Returns the number of separators in an open cache.
|
static |
Returns the number of shapes in an open cache.
Returns the OpenGL version for the current context. This method is an extension versus the Open Inventor API.
|
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.
Increment the number of separators in an open cache.
Increment the number of shapes in a open cache.
Initialize relevant common data for all instances, like the type system.
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.
|
static |
Not properly supported yet.
|
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.
|
static |
Sets data for context.
Sets the auto cache bits.
Update auto cache bits.