1 #ifndef COIN_SOGLCACHECONTEXTELEMENT_H 2 #define COIN_SOGLCACHECONTEXTELEMENT_H 36 #include <Inventor/elements/SoSubElement.h> 43 typedef void SoScheduleDeleteCB(
void * closure, uint32_t contextid);
47 class COIN_DLL_API SoGLCacheContextElement :
public SoElement {
50 SO_ELEMENT_HEADER(SoGLCacheContextElement);
55 virtual ~SoGLCacheContextElement();
62 static void set(
SoState * state,
int context,
63 SbBool twopasstransparency,
64 SbBool remoterendering);
65 static int get(
SoState * state);
66 static int getExtID(
const char * str);
67 static void getOpenGLVersion(
SoState * state,
int & major,
int & minor);
68 static SbBool extSupported(
SoState * state,
int extid);
69 static SbBool areMipMapsFast(
SoState * state);
74 static void shouldAutoCache(
SoState * state,
int bits);
75 static void setAutoCacheBits(
SoState * state,
int bits);
76 static int resetAutoCacheBits(
SoState * state);
77 static SbBool getIsRemoteRendering(
SoState * state);
79 static uint32_t getUniqueCacheContext(
void);
81 static void scheduleDeleteCallback(
const uint32_t contextid,
82 SoScheduleDeleteCB * cb,
85 static void incNumShapes(
SoState * state);
86 static int getNumShapes(
SoState * state);
87 static void incNumSeparators(
SoState * state);
88 static int getNumSeparators(
SoState * state);
93 static void cleanupContext(uint32_t contextid,
void * closure);
102 enum { RENDERING_UNSET, RENDERING_SET_DIRECT, RENDERING_SET_INDIRECT };
104 SbBool isDirectRendering(
SoState * state)
const;
111 #ifndef COIN_INTERNAL 112 #include <Inventor/elements/SoGLDisplayList.h> 113 #endif // ! COIN_INTERNAL 115 #endif // !COIN_SOGLCACHECONTEXTELEMENT_H static void initClass(void)
Definition: SoElement.cpp:506
virtual SbBool matches(const SoElement *element) const =0
Definition: SoElement.cpp:608
SoElement is the abstract base class for all elements.
Definition: SoElement.h:43
The SoState class manages the Coin scenegraph traversal state data.The SoState class is used by actio...
Definition: SoState.h:44
virtual void init(SoState *state)
Definition: SoElement.cpp:552
virtual SoElement * copyMatchInfo(void) const =0
The SoGLDisplayList class stores and manages OpenGL display lists.The TEXTURE_OBJECT type is not dire...
Definition: SoGLDisplayList.h:43