Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
src_gui_opengl_qopenglfunctions::MyGLWindow Class Reference

[0] More...

+ Inheritance diagram for src_gui_opengl_qopenglfunctions::MyGLWindow:
+ Collaboration diagram for src_gui_opengl_qopenglfunctions::MyGLWindow:

Public Member Functions

 MyGLWindow (QScreen *screen=nullptr)
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=nullptr)
 Constructs an object with parent object parent.
 
virtual ~QObject ()
 Destroys the object, deleting all its child objects.
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 Filters events if this object has been installed as an event filter for the watched object.
 
QString objectName () const
 
Q_WEAK_OVERLOAD void setObjectName (const QString &name)
 Sets the object's name to name.
 
void setObjectName (QAnyStringView name)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
QBindable< QStringbindableObjectName ()
 
bool isWidgetType () const
 Returns true if the object is a widget; otherwise returns false.
 
bool isWindowType () const
 Returns true if the object is a window; otherwise returns false.
 
bool isQuickItemType () const
 Returns true if the object is a QQuickItem; otherwise returns false.
 
bool signalsBlocked () const noexcept
 Returns true if signals are blocked; otherwise returns false.
 
bool blockSignals (bool b) noexcept
 If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it).
 
QThreadthread () const
 Returns the thread in which the object lives.
 
bool moveToThread (QThread *thread QT6_DECL_NEW_OVERLOAD_TAIL)
 Changes the thread affinity for this object and its children and returns true on success.
 
int startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer)
 This is an overloaded function that will start a timer of type timerType and a timeout of interval milliseconds.
 
int startTimer (std::chrono::nanoseconds time, Qt::TimerType timerType=Qt::CoarseTimer)
 
void killTimer (int id)
 Kills the timer with timer identifier, id.
 
void killTimer (Qt::TimerId id)
 
template<typename T >
findChild (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 Returns the child of this object that can be cast into type T and that is called name, or \nullptr if there is no such object.
 
template<typename T >
QList< T > findChildren (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects.
 
template<typename T >
findChild (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
template<typename T >
QList< T > findChildren (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
const QObjectListchildren () const
 Returns a list of child objects.
 
void setParent (QObject *parent)
 Makes the object a child of parent.
 
void installEventFilter (QObject *filterObj)
 Installs an event filter filterObj on this object.
 
void removeEventFilter (QObject *obj)
 Removes an event filter object obj from this object.
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=nullptr, const QObject *receiver=nullptr, const char *member=nullptr) const
 
bool disconnect (const QObject *receiver, const char *member=nullptr) const
 
void dumpObjectTree () const
 Dumps a tree of children to the debug output.
 
void dumpObjectInfo () const
 Dumps information about signal connections, etc.
 
bool setProperty (const char *name, const QVariant &value)
 Sets the value of the object's name property to value.
 
bool setProperty (const char *name, QVariant &&value)
 
QVariant property (const char *name) const
 Returns the value of the object's name property.
 
QList< QByteArraydynamicPropertyNames () const
 
QBindingStoragebindingStorage ()
 
const QBindingStoragebindingStorage () const
 
QObjectparent () const
 Returns a pointer to the parent object.
 
bool inherits (const char *classname) const
 Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false.
 
- Public Member Functions inherited from QSurface
virtual ~QSurface ()
 Destroys the surface.
 
SurfaceClass surfaceClass () const
 Returns the surface class of this surface.
 
virtual QPlatformSurfacesurfaceHandle () const =0
 Returns a handle to the platform-specific implementation of the surface.
 
bool supportsOpenGL () const
 Returns true if the surface is OpenGL compatible and can be used in conjunction with QOpenGLContext; otherwise returns false.
 

Protected Member Functions

void initializeGL ()
 
void paintGL ()
 [1]
 
- Protected Member Functions inherited from QWindow
virtual void exposeEvent (QExposeEvent *)
 The expose event (ev) is sent by the window system when a window moves between the un-exposed and exposed states.
 
virtual void resizeEvent (QResizeEvent *)
 Override this to handle resize events (ev).
 
virtual void paintEvent (QPaintEvent *)
 The paint event (ev) is sent by the window system whenever an area of the window needs a repaint, for example when initially showing the window, or due to parts of the window being uncovered by moving another window.
 
virtual void moveEvent (QMoveEvent *)
 Override this to handle window move events (ev).
 
virtual void focusInEvent (QFocusEvent *)
 Override this to handle focus in events (ev).
 
virtual void focusOutEvent (QFocusEvent *)
 Override this to handle focus out events (ev).
 
virtual void showEvent (QShowEvent *)
 Override this to handle show events (ev).
 
virtual void hideEvent (QHideEvent *)
 Override this to handle hide events (ev).
 
virtual void closeEvent (QCloseEvent *)
 Override this to handle close events (ev).
 
virtual bool event (QEvent *) override
 Override this to handle any event (ev) sent to the window.
 
virtual void keyPressEvent (QKeyEvent *)
 Override this to handle key press events (ev).
 
virtual void keyReleaseEvent (QKeyEvent *)
 Override this to handle key release events (ev).
 
virtual void mousePressEvent (QMouseEvent *)
 Override this to handle mouse press events (ev).
 
virtual void mouseReleaseEvent (QMouseEvent *)
 Override this to handle mouse release events (ev).
 
virtual void mouseDoubleClickEvent (QMouseEvent *)
 Override this to handle mouse double click events (ev).
 
virtual void mouseMoveEvent (QMouseEvent *)
 Override this to handle mouse move events (ev).
 
virtual void touchEvent (QTouchEvent *)
 Override this to handle touch events (ev).
 
virtual bool nativeEvent (const QByteArray &eventType, void *message, qintptr *result)
 Override this to handle platform dependent events.
 
 QWindow (QWindowPrivate &dd, QWindow *parent)
 Creates a window as a child of the given parent window with the dd private implementation.
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns \nullptr.
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 Returns the number of receivers connected to the signal.
 
bool isSignalConnected (const QMetaMethod &signal) const
 
virtual void timerEvent (QTimerEvent *event)
 This event handler can be reimplemented in a subclass to receive timer events for the object.
 
virtual void childEvent (QChildEvent *event)
 This event handler can be reimplemented in a subclass to receive child events.
 
virtual void customEvent (QEvent *event)
 This event handler can be reimplemented in a subclass to receive custom events.
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
 QObject (QObjectPrivate &dd, QObject *parent=nullptr)
 
- Protected Member Functions inherited from QSurface
 QSurface (SurfaceClass type)
 Creates a surface with the given type.
 
- Protected Member Functions inherited from QOpenGLFunctions
 QOpenGLFunctions ()
 Constructs a default function resolver.
 
 QOpenGLFunctions (QOpenGLContext *context)
 Constructs a function resolver for context.
 
 ~QOpenGLFunctions ()
 Destroys this function resolver.
 
QOpenGLFunctions::OpenGLFeatures openGLFeatures () const
 Returns the set of features that are present on this system's OpenGL implementation.
 
bool hasOpenGLFeature (QOpenGLFunctions::OpenGLFeature feature) const
 Returns true if feature is present on this system's OpenGL implementation; false otherwise.
 
void initializeOpenGLFunctions ()
 Initializes OpenGL function resolution for the current context.
 
void glBindTexture (GLenum target, GLuint texture)
 Convenience function that calls glBindTexture(target, texture).
 
void glBlendFunc (GLenum sfactor, GLenum dfactor)
 Convenience function that calls glBlendFunc(sfactor, dfactor).
 
void glClear (GLbitfield mask)
 Convenience function that calls glClear(mask).
 
void glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
 Convenience function that calls glClearColor(red, green, blue, alpha).
 
void glClearStencil (GLint s)
 Convenience function that calls glClearStencil(s).
 
void glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
 Convenience function that calls glColorMask(red, green, blue, alpha).
 
void glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
 Convenience function that calls glCopyTexImage2D(target, level, internalformat, x, y, width, height, border).
 
void glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
 Convenience function that calls glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height).
 
void glCullFace (GLenum mode)
 Convenience function that calls glCullFace(mode).
 
void glDeleteTextures (GLsizei n, const GLuint *textures)
 Convenience function that calls glDeleteTextures(n, textures).
 
void glDepthFunc (GLenum func)
 Convenience function that calls glDepthFunc(func).
 
void glDepthMask (GLboolean flag)
 Convenience function that calls glDepthMask(flag).
 
void glDisable (GLenum cap)
 Convenience function that calls glDisable(cap).
 
void glDrawArrays (GLenum mode, GLint first, GLsizei count)
 Convenience function that calls glDrawArrays(mode, first, count).
 
void glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices)
 Convenience function that calls glDrawElements(mode, count, type, indices).
 
void glEnable (GLenum cap)
 Convenience function that calls glEnable(cap).
 
void glFinish ()
 Convenience function that calls glFinish().
 
void glFlush ()
 Convenience function that calls glFlush().
 
void glFrontFace (GLenum mode)
 Convenience function that calls glFrontFace(mode).
 
void glGenTextures (GLsizei n, GLuint *textures)
 Convenience function that calls glGenTextures(n, textures).
 
void glGetBooleanv (GLenum pname, GLboolean *params)
 Convenience function that calls glGetBooleanv(pname, params).
 
GLenum glGetError ()
 Convenience function that calls glGetError().
 
void glGetFloatv (GLenum pname, GLfloat *params)
 Convenience function that calls glGetFloatv(pname, params).
 
void glGetIntegerv (GLenum pname, GLint *params)
 Convenience function that calls glGetIntegerv(pname, params).
 
const GLubyte * glGetString (GLenum name)
 Convenience function that calls glGetString(name).
 
void glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params)
 Convenience function that calls glGetTexParameterfv(target, pname, params).
 
void glGetTexParameteriv (GLenum target, GLenum pname, GLint *params)
 Convenience function that calls glGetTexParameteriv(target, pname, params).
 
void glHint (GLenum target, GLenum mode)
 Convenience function that calls glHint(target, mode).
 
GLboolean glIsEnabled (GLenum cap)
 Convenience function that calls glIsEnabled(cap).
 
GLboolean glIsTexture (GLuint texture)
 Convenience function that calls glIsTexture(texture).
 
void glLineWidth (GLfloat width)
 Convenience function that calls glLineWidth(width).
 
void glPixelStorei (GLenum pname, GLint param)
 Convenience function that calls glPixelStorei(pname, param).
 
void glPolygonOffset (GLfloat factor, GLfloat units)
 Convenience function that calls glPolygonOffset(factor, units).
 
void glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels)
 Convenience function that calls glReadPixels(x, y, width, height, format, type, pixels).
 
void glScissor (GLint x, GLint y, GLsizei width, GLsizei height)
 Convenience function that calls glScissor(x, y, width, height).
 
void glStencilFunc (GLenum func, GLint ref, GLuint mask)
 Convenience function that calls glStencilFunc(func, ref, mask).
 
void glStencilMask (GLuint mask)
 Convenience function that calls glStencilMask(mask).
 
void glStencilOp (GLenum fail, GLenum zfail, GLenum zpass)
 Convenience function that calls glStencilOp(fail, zfail, zpass).
 
void glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
 Convenience function that calls glTexImage2D(target, level, internalformat, width, height, border, format, type, pixels).
 
void glTexParameterf (GLenum target, GLenum pname, GLfloat param)
 Convenience function that calls glTexParameterf(target, pname, param).
 
void glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params)
 Convenience function that calls glTexParameterfv(target, pname, params).
 
void glTexParameteri (GLenum target, GLenum pname, GLint param)
 Convenience function that calls glTexParameteri(target, pname, param).
 
void glTexParameteriv (GLenum target, GLenum pname, const GLint *params)
 Convenience function that calls glTexParameteriv(target, pname, params).
 
void glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels)
 Convenience function that calls glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels).
 
void glViewport (GLint x, GLint y, GLsizei width, GLsizei height)
 Convenience function that calls glViewport(x, y, width, height).
 
void glActiveTexture (GLenum texture)
 Convenience function that calls glActiveTexture(texture).
 
void glAttachShader (GLuint program, GLuint shader)
 Convenience function that calls glAttachShader(program, shader).
 
void glBindAttribLocation (GLuint program, GLuint index, const char *name)
 Convenience function that calls glBindAttribLocation(program, index, name).
 
void glBindBuffer (GLenum target, GLuint buffer)
 Convenience function that calls glBindBuffer(target, buffer).
 
void glBindFramebuffer (GLenum target, GLuint framebuffer)
 Convenience function that calls glBindFramebuffer(target, framebuffer).
 
void glBindRenderbuffer (GLenum target, GLuint renderbuffer)
 Convenience function that calls glBindRenderbuffer(target, renderbuffer).
 
void glBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
 Convenience function that calls glBlendColor(red, green, blue, alpha).
 
void glBlendEquation (GLenum mode)
 Convenience function that calls glBlendEquation(mode).
 
void glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha)
 Convenience function that calls glBlendEquationSeparate(modeRGB, modeAlpha).
 
void glBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
 Convenience function that calls glBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha).
 
void glBufferData (GLenum target, qopengl_GLsizeiptr size, const void *data, GLenum usage)
 Convenience function that calls glBufferData(target, size, data, usage).
 
void glBufferSubData (GLenum target, qopengl_GLintptr offset, qopengl_GLsizeiptr size, const void *data)
 Convenience function that calls glBufferSubData(target, offset, size, data).
 
GLenum glCheckFramebufferStatus (GLenum target)
 Convenience function that calls glCheckFramebufferStatus(target).
 
void glClearDepthf (GLclampf depth)
 Convenience function that calls glClearDepth(depth) on desktop OpenGL systems and glClearDepthf(depth) on embedded OpenGL ES systems.
 
void glCompileShader (GLuint shader)
 Convenience function that calls glCompileShader(shader).
 
void glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data)
 Convenience function that calls glCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data).
 
void glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data)
 Convenience function that calls glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data).
 
GLuint glCreateProgram ()
 Convenience function that calls glCreateProgram().
 
GLuint glCreateShader (GLenum type)
 Convenience function that calls glCreateShader(type).
 
void glDeleteBuffers (GLsizei n, const GLuint *buffers)
 Convenience function that calls glDeleteBuffers(n, buffers).
 
void glDeleteFramebuffers (GLsizei n, const GLuint *framebuffers)
 Convenience function that calls glDeleteFramebuffers(n, framebuffers).
 
void glDeleteProgram (GLuint program)
 Convenience function that calls glDeleteProgram(program).
 
void glDeleteRenderbuffers (GLsizei n, const GLuint *renderbuffers)
 Convenience function that calls glDeleteRenderbuffers(n, renderbuffers).
 
void glDeleteShader (GLuint shader)
 Convenience function that calls glDeleteShader(shader).
 
void glDepthRangef (GLclampf zNear, GLclampf zFar)
 Convenience function that calls glDepthRange(zNear, zFar) on desktop OpenGL systems and glDepthRangef(zNear, zFar) on embedded OpenGL ES systems.
 
void glDetachShader (GLuint program, GLuint shader)
 Convenience function that calls glDetachShader(program, shader).
 
void glDisableVertexAttribArray (GLuint index)
 Convenience function that calls glDisableVertexAttribArray(index).
 
void glEnableVertexAttribArray (GLuint index)
 Convenience function that calls glEnableVertexAttribArray(index).
 
void glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
 Convenience function that calls glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer).
 
void glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
 Convenience function that calls glFramebufferTexture2D(target, attachment, textarget, texture, level).
 
void glGenBuffers (GLsizei n, GLuint *buffers)
 Convenience function that calls glGenBuffers(n, buffers).
 
void glGenerateMipmap (GLenum target)
 Convenience function that calls glGenerateMipmap(target).
 
void glGenFramebuffers (GLsizei n, GLuint *framebuffers)
 Convenience function that calls glGenFramebuffers(n, framebuffers).
 
void glGenRenderbuffers (GLsizei n, GLuint *renderbuffers)
 Convenience function that calls glGenRenderbuffers(n, renderbuffers).
 
void glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name)
 Convenience function that calls glGetActiveAttrib(program, index, bufsize, length, size, type, name).
 
void glGetActiveUniform (GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name)
 Convenience function that calls glGetActiveUniform(program, index, bufsize, length, size, type, name).
 
void glGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei *count, GLuint *shaders)
 Convenience function that calls glGetAttachedShaders(program, maxcount, count, shaders).
 
GLint glGetAttribLocation (GLuint program, const char *name)
 Convenience function that calls glGetAttribLocation(program, name).
 
void glGetBufferParameteriv (GLenum target, GLenum pname, GLint *params)
 Convenience function that calls glGetBufferParameteriv(target, pname, params).
 
void glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint *params)
 Convenience function that calls glGetFramebufferAttachmentParameteriv(target, attachment, pname, params).
 
void glGetProgramiv (GLuint program, GLenum pname, GLint *params)
 Convenience function that calls glGetProgramiv(program, pname, params).
 
void glGetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei *length, char *infolog)
 Convenience function that calls glGetProgramInfoLog(program, bufsize, length, infolog).
 
void glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint *params)
 Convenience function that calls glGetRenderbufferParameteriv(target, pname, params).
 
void glGetShaderiv (GLuint shader, GLenum pname, GLint *params)
 Convenience function that calls glGetShaderiv(shader, pname, params).
 
void glGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei *length, char *infolog)
 Convenience function that calls glGetShaderInfoLog(shader, bufsize, length, infolog).
 
void glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision)
 Convenience function that calls glGetShaderPrecisionFormat(shadertype, precisiontype, range, precision).
 
void glGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei *length, char *source)
 Convenience function that calls glGetShaderSource(shader, bufsize, length, source).
 
void glGetUniformfv (GLuint program, GLint location, GLfloat *params)
 Convenience function that calls glGetUniformfv(program, location, params).
 
void glGetUniformiv (GLuint program, GLint location, GLint *params)
 Convenience function that calls glGetUniformiv(program, location, params).
 
GLint glGetUniformLocation (GLuint program, const char *name)
 Convenience function that calls glGetUniformLocation(program, name).
 
void glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat *params)
 Convenience function that calls glGetVertexAttribfv(index, pname, params).
 
void glGetVertexAttribiv (GLuint index, GLenum pname, GLint *params)
 Convenience function that calls glGetVertexAttribiv(index, pname, params).
 
void glGetVertexAttribPointerv (GLuint index, GLenum pname, void **pointer)
 Convenience function that calls glGetVertexAttribPointerv(index, pname, pointer).
 
GLboolean glIsBuffer (GLuint buffer)
 Convenience function that calls glIsBuffer(buffer).
 
GLboolean glIsFramebuffer (GLuint framebuffer)
 Convenience function that calls glIsFramebuffer(framebuffer).
 
GLboolean glIsProgram (GLuint program)
 Convenience function that calls glIsProgram(program).
 
GLboolean glIsRenderbuffer (GLuint renderbuffer)
 Convenience function that calls glIsRenderbuffer(renderbuffer).
 
GLboolean glIsShader (GLuint shader)
 Convenience function that calls glIsShader(shader).
 
void glLinkProgram (GLuint program)
 Convenience function that calls glLinkProgram(program).
 
void glReleaseShaderCompiler ()
 Convenience function that calls glReleaseShaderCompiler().
 
void glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
 Convenience function that calls glRenderbufferStorage(target, internalformat, width, height).
 
void glSampleCoverage (GLclampf value, GLboolean invert)
 Convenience function that calls glSampleCoverage(value, invert).
 
void glShaderBinary (GLint n, const GLuint *shaders, GLenum binaryformat, const void *binary, GLint length)
 Convenience function that calls glShaderBinary(n, shaders, binaryformat, binary, length).
 
void glShaderSource (GLuint shader, GLsizei count, const char **string, const GLint *length)
 Convenience function that calls glShaderSource(shader, count, string, length).
 
void glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask)
 Convenience function that calls glStencilFuncSeparate(face, func, ref, mask).
 
void glStencilMaskSeparate (GLenum face, GLuint mask)
 Convenience function that calls glStencilMaskSeparate(face, mask).
 
void glStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass)
 Convenience function that calls glStencilOpSeparate(face, fail, zfail, zpass).
 
void glUniform1f (GLint location, GLfloat x)
 Convenience function that calls glUniform1f(location, x).
 
void glUniform1fv (GLint location, GLsizei count, const GLfloat *v)
 Convenience function that calls glUniform1fv(location, count, v).
 
void glUniform1i (GLint location, GLint x)
 Convenience function that calls glUniform1i(location, x).
 
void glUniform1iv (GLint location, GLsizei count, const GLint *v)
 Convenience function that calls glUniform1iv(location, count, v).
 
void glUniform2f (GLint location, GLfloat x, GLfloat y)
 Convenience function that calls glUniform2f(location, x, y).
 
void glUniform2fv (GLint location, GLsizei count, const GLfloat *v)
 Convenience function that calls glUniform2fv(location, count, v).
 
void glUniform2i (GLint location, GLint x, GLint y)
 Convenience function that calls glUniform2i(location, x, y).
 
void glUniform2iv (GLint location, GLsizei count, const GLint *v)
 Convenience function that calls glUniform2iv(location, count, v).
 
void glUniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z)
 Convenience function that calls glUniform3f(location, x, y, z).
 
void glUniform3fv (GLint location, GLsizei count, const GLfloat *v)
 Convenience function that calls glUniform3fv(location, count, v).
 
void glUniform3i (GLint location, GLint x, GLint y, GLint z)
 Convenience function that calls glUniform3i(location, x, y, z).
 
void glUniform3iv (GLint location, GLsizei count, const GLint *v)
 Convenience function that calls glUniform3iv(location, count, v).
 
void glUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
 Convenience function that calls glUniform4f(location, x, y, z, w).
 
void glUniform4fv (GLint location, GLsizei count, const GLfloat *v)
 Convenience function that calls glUniform4fv(location, count, v).
 
void glUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w)
 Convenience function that calls glUniform4i(location, x, y, z, w).
 
void glUniform4iv (GLint location, GLsizei count, const GLint *v)
 Convenience function that calls glUniform4iv(location, count, v).
 
void glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
 Convenience function that calls glUniformMatrix2fv(location, count, transpose, value).
 
void glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
 Convenience function that calls glUniformMatrix3fv(location, count, transpose, value).
 
void glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
 Convenience function that calls glUniformMatrix4fv(location, count, transpose, value).
 
void glUseProgram (GLuint program)
 Convenience function that calls glUseProgram(program).
 
void glValidateProgram (GLuint program)
 Convenience function that calls glValidateProgram(program).
 
void glVertexAttrib1f (GLuint indx, GLfloat x)
 Convenience function that calls glVertexAttrib1f(indx, x).
 
void glVertexAttrib1fv (GLuint indx, const GLfloat *values)
 Convenience function that calls glVertexAttrib1fv(indx, values).
 
void glVertexAttrib2f (GLuint indx, GLfloat x, GLfloat y)
 Convenience function that calls glVertexAttrib2f(indx, x, y).
 
void glVertexAttrib2fv (GLuint indx, const GLfloat *values)
 Convenience function that calls glVertexAttrib2fv(indx, values).
 
void glVertexAttrib3f (GLuint indx, GLfloat x, GLfloat y, GLfloat z)
 Convenience function that calls glVertexAttrib3f(indx, x, y, z).
 
void glVertexAttrib3fv (GLuint indx, const GLfloat *values)
 Convenience function that calls glVertexAttrib3fv(indx, values).
 
void glVertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
 Convenience function that calls glVertexAttrib4f(indx, x, y, z, w).
 
void glVertexAttrib4fv (GLuint indx, const GLfloat *values)
 Convenience function that calls glVertexAttrib4fv(indx, values).
 
void glVertexAttribPointer (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *ptr)
 Convenience function that calls glVertexAttribPointer(indx, size, type, normalized, stride, ptr).
 

Protected Attributes

QOpenGLContextm_context
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Protected Attributes inherited from QSurface
SurfaceClass m_type
 
QSurfacePrivate * m_reserved
 
- Protected Attributes inherited from QOpenGLFunctions
QOpenGLFunctionsPrivated_ptr
 

Additional Inherited Members

- Public Types inherited from QSurface
enum  SurfaceClass { Window , Offscreen }
 The SurfaceClass enum describes the actual subclass of the surface. More...
 
enum  SurfaceType {
  RasterSurface , OpenGLSurface , RasterGLSurface , OpenVGSurface ,
  VulkanSurface , MetalSurface , Direct3DSurface
}
 The SurfaceType enum describes what type of surface this is. More...
 
- Public Slots inherited from QWindow
 Q_REVISION (2, 1) void requestActivate()
 
void setVisible (bool visible)
 
void show ()
 Shows the window.
 
void hide ()
 Hides the window.
 
void showMinimized ()
 Shows the window as minimized.
 
void showMaximized ()
 Shows the window as maximized.
 
void showFullScreen ()
 Shows the window as fullscreen.
 
void showNormal ()
 Shows the window as normal, i.e.
 
bool close ()
 Close the window.
 
void raise ()
 Raise the window in the windowing system.
 
void lower ()
 Lower the window in the windowing system.
 
bool startSystemResize (Qt::Edges edges)
 Start a system-specific resize operation.
 
bool startSystemMove ()
 Start a system-specific move operation.
 
void setTitle (const QString &)
 
void setX (int arg)
 
void setY (int arg)
 
void setWidth (int arg)
 
void setHeight (int arg)
 
void setGeometry (int posx, int posy, int w, int h)
 Sets the geometry of the window, excluding its window frame, to a rectangle constructed from posx, posy, w and h.
 
void setGeometry (const QRect &rect)
 Sets the geometry of the window, excluding its window frame, to rect.
 
void setMinimumWidth (int w)
 
void setMinimumHeight (int h)
 
void setMaximumWidth (int w)
 
void setMaximumHeight (int h)
 
 Q_REVISION (2, 1) void alert(int msec)
 
 Q_REVISION (2, 3) void requestUpdate()
 
- Public Slots inherited from QObject
void deleteLater ()
 \threadsafe
 
- Signals inherited from QWindow
void screenChanged (QScreen *screen)
 This signal is emitted when a window's screen changes, either by being set explicitly with setScreen(), or automatically when the window's screen is removed.
 
void modalityChanged (Qt::WindowModality modality)
 This signal is emitted when the Qwindow::modality property changes to modality.
 
void windowStateChanged (Qt::WindowState windowState)
 This signal is emitted when the windowState changes, either by being set explicitly with setWindowStates(), or automatically when the user clicks one of the titlebar buttons or by other means.
 
 Q_REVISION (2, 2) void windowTitleChanged(const QString &title)
 
void xChanged (int arg)
 
void yChanged (int arg)
 
void widthChanged (int arg)
 
void heightChanged (int arg)
 
void minimumWidthChanged (int arg)
 
void minimumHeightChanged (int arg)
 
void maximumWidthChanged (int arg)
 
void maximumHeightChanged (int arg)
 
void visibleChanged (bool arg)
 
Q_REVISION(2, 1) void visibilityChanged(QWindow Q_REVISION (2, 1) void activeChanged()
 
void contentOrientationChanged (Qt::ScreenOrientation orientation)
 
void focusObjectChanged (QObject *object)
 This signal is emitted when the final receiver of events tied to focus is changed to object.
 
 Q_REVISION (2, 1) void opacityChanged(qreal opacity)
 
 Q_REVISION (2, 13) void transientParentChanged(QWindow *transientParent)
 
- Signals inherited from QObject
void destroyed (QObject *=nullptr)
 This signal is emitted immediately before the object obj is destroyed, after any instances of QPointer have been notified, and cannot be blocked.
 
void objectNameChanged (const QString &objectName, QPrivateSignal)
 This signal is emitted after the object's name has been changed.
 
- Static Public Member Functions inherited from QObject
static QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 \threadsafe
 
static QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::ContextTypeForFunctor< Func2 >::ContextType *context, Func2 &&slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 &&slot)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 \threadsafe
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static bool disconnect (const QMetaObject::Connection &)
 Disconnect a connection.
 
template<typename Func1 , typename Func2 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot)
 
template<typename Func1 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *receiver, void **zero)
 
- Protected Types inherited from QOpenGLFunctions
enum  OpenGLFeature {
  Multitexture = 0x0001 , Shaders = 0x0002 , Buffers = 0x0004 , Framebuffers = 0x0008 ,
  BlendColor = 0x0010 , BlendEquation = 0x0020 , BlendEquationSeparate = 0x0040 , BlendFuncSeparate = 0x0080 ,
  BlendSubtract = 0x0100 , CompressedTextures = 0x0200 , Multisample = 0x0400 , StencilSeparate = 0x0800 ,
  NPOTTextures = 0x1000 , NPOTTextureRepeat = 0x2000 , FixedFunctionPipeline = 0x4000 , TextureRGFormats = 0x8000 ,
  MultipleRenderTargets = 0x10000 , BlendEquationAdvanced = 0x20000
}
 This enum defines OpenGL and OpenGL ES features whose presence may depend on the implementation. More...
 
- Static Protected Member Functions inherited from QOpenGLFunctions
static bool isInitialized (const QOpenGLFunctionsPrivate *d)
 
- Properties inherited from QWindow
QString title
 the window's title in the windowing system
 
Qt::WindowModality modality
 the modality of the window
 
Qt::WindowFlags flags
 the window flags of the window
 
int x
 the x position of the window's geometry
 
int y
 the y position of the window's geometry
 
int width
 the width of the window's geometry
 
int height
 the height of the window's geometry
 
int minimumWidth
 the minimum width of the window's geometry
 
int minimumHeight
 the minimum height of the window's geometry
 
int maximumWidth
 the maximum width of the window's geometry
 
int maximumHeight
 the maximum height of the window's geometry
 
bool visible
 whether the window is visible or not
 
bool active
 the active status of the window
 
Visibility visibility
 the screen-occupation state of the window
 
Qt::ScreenOrientation contentOrientation
 the orientation of the window's contents
 
qreal opacity
 The opacity of the window in the windowing system.
 
- Properties inherited from QObject
QString objectName
 the name of this object
 

Detailed Description

[0]

Definition at line 13 of file src_gui_opengl_qopenglfunctions.cpp.

Constructor & Destructor Documentation

◆ MyGLWindow()

src_gui_opengl_qopenglfunctions::MyGLWindow::MyGLWindow ( QScreen * screen = nullptr)
explicit

Definition at line 26 of file src_gui_opengl_qopenglfunctions.cpp.

References QOpenGLContext::create(), create(), initializeGL(), m_context, QSurface::OpenGLSurface, and paintGL().

+ Here is the call graph for this function:

Member Function Documentation

◆ initializeGL()

void src_gui_opengl_qopenglfunctions::MyGLWindow::initializeGL ( )
protected

Definition at line 41 of file src_gui_opengl_qopenglfunctions.cpp.

References QOpenGLFunctions::initializeOpenGLFunctions(), m_context, and QOpenGLContext::makeCurrent().

Referenced by MyGLWindow().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ paintGL()

void src_gui_opengl_qopenglfunctions::MyGLWindow::paintGL ( )
protected

[1]

Definition at line 52 of file src_gui_opengl_qopenglfunctions.cpp.

References QOpenGLContext::doneCurrent(), GL_TEXTURE1, QOpenGLFunctions::glActiveTexture(), QOpenGLFunctions::glBindTexture(), m_context, QOpenGLContext::makeCurrent(), QOpenGLContext::swapBuffers(), and src_gui_opengl_qopenglfunctions::textureId.

Referenced by MyGLWindow().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_context

QOpenGLContext* src_gui_opengl_qopenglfunctions::MyGLWindow::m_context
protected

Definition at line 23 of file src_gui_opengl_qopenglfunctions.cpp.

Referenced by MyGLWindow(), initializeGL(), and paintGL().


The documentation for this class was generated from the following file: