![]() |
Qt 6.x
The Qt SDK
|
The QOpenGLSharedResourceGuard class is a convenience sub-class of QOpenGLSharedResource to be used to track a single OpenGL object with a GLuint identifier. The constructor takes a function pointer to a function that will be used to free the resource if and when necessary. \inmodule QtGui. More...
#include <qopenglcontext_p.h>
Inheritance diagram for QOpenGLSharedResourceGuard:
Collaboration diagram for QOpenGLSharedResourceGuard:Public Types | |
| typedef void(* | FreeResourceFunc) (QOpenGLFunctions *functions, GLuint id) |
Public Member Functions | |
| QOpenGLSharedResourceGuard (QOpenGLContext *context, GLuint id, FreeResourceFunc func) | |
| ~QOpenGLSharedResourceGuard () override | |
| GLuint | id () const |
Public Member Functions inherited from QOpenGLSharedResource | |
| QOpenGLSharedResource (QOpenGLContextGroup *group) | |
| virtual | ~QOpenGLSharedResource ()=0 |
| QOpenGLContextGroup * | group () const |
| void | free () |
Protected Member Functions | |
| void | invalidateResource () override |
| void | freeResource (QOpenGLContext *context) override |
| virtual void | invalidateResource ()=0 |
| virtual void | freeResource (QOpenGLContext *context)=0 |
The QOpenGLSharedResourceGuard class is a convenience sub-class of QOpenGLSharedResource to be used to track a single OpenGL object with a GLuint identifier. The constructor takes a function pointer to a function that will be used to free the resource if and when necessary. \inmodule QtGui.
Definition at line 67 of file qopenglcontext_p.h.
| typedef void(* QOpenGLSharedResourceGuard::FreeResourceFunc) (QOpenGLFunctions *functions, GLuint id) |
Definition at line 70 of file qopenglcontext_p.h.
|
inline |
Definition at line 71 of file qopenglcontext_p.h.
|
overridedefault |
|
overrideprotectedvirtual |
Implements QOpenGLSharedResource.
Definition at line 1168 of file qopenglcontext.cpp.
References context.
|
inline |
Definition at line 79 of file qopenglcontext_p.h.
Referenced by QOpenGLShaderPrivate::compile(), and QOpenGLFramebufferObjectPrivate::fbo().
Here is the caller graph for this function:
|
inlineoverrideprotectedvirtual |
Implements QOpenGLSharedResource.
Definition at line 82 of file qopenglcontext_p.h.