6.0.0-rc4Source

Nt OpenGL C++ Classes

Windows that render with OpenGL, QPainter on OpenGL, and framebuffer objects.

Using the Module

target_link_libraries(app PRIVATE Nt::OpenGL)

Nt OpenGL renders with OpenGL in windows and offscreen: QOpenGLWindow is a window that renders with OpenGL, QOpenGLPaintDevice lets QPainter draw with OpenGL, and QOpenGLFramebufferObject is an offscreen target. The contexts, functions and formats they use are in Nt GUI: QOpenGLContext, QOpenGLFunctions, QSurfaceFormat and QOffscreenSurface. See Using Nt OpenGL.

Link with Nt::OpenGL and include <QtOpenGL> or the headers of the classes, such as <QOpenGLWindow>.

Classes

QOpenGLFramebufferObjectThe QOpenGLFramebufferObject class encapsulates an OpenGL framebuffer object.
QOpenGLFramebufferObjectFormatThe QOpenGLFramebufferObjectFormat class specifies the format of an OpenGL framebuffer object.
QOpenGLPaintDeviceThe QOpenGLPaintDevice class enables painting to an OpenGL context using QPainter.
QOpenGLWindowThe QOpenGLWindow class is a convenience subclass of QWindow to perform OpenGL painting.