Workspace 6.21.5
Public Slots | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
WSGLContextRegistry Class Reference

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 ()
 
WSGLContextgetPrimaryWSGLContext ()
 
WSGLContextgetWSGLContext (const QOpenGLContext &glContext)
 
void setCacheCapacity (size_t size)
 

Static Public Member Functions

static WSGLContextRegistrygetInstance ()
 

Protected Member Functions

 WSGLContextRegistry ()
 
 WSGLContextRegistry (const WSGLContextRegistry &other)=delete
 
WSGLContextRegistryoperator= (const WSGLContextRegistry &other)=delete
 

Detailed Description

This is needed because the WSGLContexts must exactly mirror the OpenGL contexts that they are implicitly bound to.

Constructor & Destructor Documentation

◆ ~WSGLContextRegistry()

~WSGLContextRegistry ( )
override

◆ WSGLContextRegistry() [1/2]

WSGLContextRegistry ( )
protected

◆ WSGLContextRegistry() [2/2]

WSGLContextRegistry ( const WSGLContextRegistry other)
protecteddelete

Member Function Documentation

◆ clear()

void clear ( )

◆ clearAllOpenGLResources

void clearAllOpenGLResources ( )
slot

◆ clearUnusedCacheItems()

void clearUnusedCacheItems ( )

◆ getInstance()

WSGLContextRegistry & getInstance ( )
static

◆ getPrimaryWSGLContext()

WSGLContext * getPrimaryWSGLContext ( )

◆ getWSGLContext()

WSGLContext & getWSGLContext ( const QOpenGLContext &  glContext)

◆ notifyOpenGLContextDeleted

void notifyOpenGLContextDeleted ( )
slot

◆ operator=()

WSGLContextRegistry & operator= ( const WSGLContextRegistry other)
protecteddelete

◆ setCacheCapacity()

void setCacheCapacity ( size_t  size)