Workspace 6.21.5
|
Class for maintaining a registry of WSGLContexts. More...
#include <Rendering/OpenGL/wsglcontext.h>
Inherits QObject.
Public Slots | |
void | clearAllOpenGLResources () |
void | notifyOpenGLContextDeleted () |
Public Member Functions | |
~WSGLContextRegistry () override | |
void | clear () |
void | clearUnusedCacheItems () |
WSGLContext * | getPrimaryWSGLContext () |
WSGLContext & | getWSGLContext (const QOpenGLContext &glContext) |
void | setCacheCapacity (size_t size) |
Static Public Member Functions | |
static WSGLContextRegistry & | getInstance () |
Protected Member Functions | |
WSGLContextRegistry () | |
WSGLContextRegistry (const WSGLContextRegistry &other)=delete | |
WSGLContextRegistry & | operator= (const WSGLContextRegistry &other)=delete |
This is needed because the WSGLContexts must exactly mirror the OpenGL contexts that they are implicitly bound to.
|
override |
|
protected |
|
protecteddelete |
void clear | ( | ) |
|
slot |
void clearUnusedCacheItems | ( | ) |
|
static |
WSGLContext * getPrimaryWSGLContext | ( | ) |
WSGLContext & getWSGLContext | ( | const QOpenGLContext & | glContext | ) |
|
slot |
|
protecteddelete |
void setCacheCapacity | ( | size_t | size | ) |