![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
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>
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 |
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 1201 of file qopenglcontext.cpp.
|
inline |
Definition at line 79 of file qopenglcontext_p.h.
|
inlineoverrideprotectedvirtual |
Implements QOpenGLSharedResource.
Definition at line 82 of file qopenglcontext_p.h.