Workspace 6.21.5
Public Member Functions | Static Public Member Functions | List of all members
WSGLContext Class Reference

Manages the data shared within an OpenGL context. More...

#include <Rendering/OpenGL/wsglcontext.h>

Inheritance diagram for WSGLContext:
[legend]

Public Member Functions

 WSGLContext (const WSGLContext &other)=delete
 
 ~WSGLContext () override
 
void clearAll ()
 
void clearUnusedCacheItems ()
 
WSGLBufferObjectCachegetBufferObjectCache ()
 
quint64 getContextId () const
 
WSGLGeometryCachegetGeometryCache ()
 
WSGLGlyphSetCachegetGlyphSetCache ()
 
WSGLTextureCachegetTextureCache ()
 
WSGLContextoperator= (const WSGLContext &rhs)=delete
 
void setCacheCapacity (size_t capacity)
 
- Public Member Functions inherited from SceneRendererContext
virtual ~SceneRendererContext ()
 

Static Public Member Functions

static QSurfaceFormat getDefaultFormat ()
 
static void setDefaultFormat (QSurfaceFormat format)
 

Detailed Description

Note
This class is deliberately does not extend or have anything to do with the QOpenGLContext class.

Constructor & Destructor Documentation

◆ WSGLContext()

WSGLContext ( const WSGLContext other)
delete

◆ ~WSGLContext()

~WSGLContext ( )
overridedefault

Member Function Documentation

◆ clearAll()

void clearAll ( )

◆ clearUnusedCacheItems()

void clearUnusedCacheItems ( )

◆ getBufferObjectCache()

WSGLBufferObjectCache & getBufferObjectCache ( )
Warning
Must only be called after the context has been created.

◆ getContextId()

quint64 getContextId ( ) const

◆ getDefaultFormat()

QSurfaceFormat getDefaultFormat ( )
static

◆ getGeometryCache()

WSGLGeometryCache & getGeometryCache ( )

◆ getGlyphSetCache()

WSGLGlyphSetCache & getGlyphSetCache ( )
Warning
Must only be called after the context has been created.

◆ getTextureCache()

WSGLTextureCache & getTextureCache ( )
Warning
Must only be called after the context has been created.

◆ operator=()

WSGLContext & operator= ( const WSGLContext rhs)
delete

◆ setCacheCapacity()

void setCacheCapacity ( size_t  capacity)
Parameters
capacityThe desired capacity of the graphics cache.

◆ setDefaultFormat()

void setDefaultFormat ( QSurfaceFormat  format)
static