Manages the data shared within an OpenGL context.
More...
#include <Rendering/OpenGL/wsglcontext.h>
- Note
- This class is deliberately does not extend or have anything to do with the QOpenGLContext class.
◆ WSGLContext()
◆ ~WSGLContext()
◆ acquireGeometry()
QSharedPointer< WSGLGeometry > acquireGeometry |
( |
const QString & |
modelId, |
|
|
double |
edgeBreakThreshold |
|
) |
| |
- Parameters
-
modelId | The ID of the model referenced in a given geometry object |
edgeBreakThreshold | The edge break threshold (in degrees) used in normals processing |
- Returns
- A pointer to the existing / created geometry object
Either returns or constructs (if it doesn't already exist) a geometry object with the specified model ID and edge break threshold.
◆ clearAll()
◆ clearUnusedCacheItems()
void clearUnusedCacheItems |
( |
| ) |
|
◆ createTexture()
QSharedPointer< WSGLTexture > createTexture |
( |
const QString & |
key | ) |
|
- Parameters
-
key | The key to reference the texture with. |
- Returns
- A newly create WSGLTexture object associated with the cache.
◆ getBufferObjectCache()
- Warning
- Must only be called after the context has been created.
◆ getContextId()
quint64 getContextId |
( |
| ) |
const |
◆ getDefaultFormat()
QSurfaceFormat getDefaultFormat |
( |
| ) |
|
|
static |
◆ getGeometryCache()
◆ getGlyphSetCache()
- Warning
- Must only be called after the context has been created.
◆ getNormalsCache()
◆ getTextureCache()
- Warning
- Must only be called after the context has been created.
◆ operator=()
◆ setCacheCapacity()
void setCacheCapacity |
( |
size_t |
capacity | ) |
|
- Parameters
-
capacity | The desired capacity of the graphics cache. |
◆ setDefaultFormat()
void setDefaultFormat |
( |
QSurfaceFormat |
format | ) |
|
|
static |