本页内容

Qt OpenGL C++ Classes

Qt OpenGL 模块提供了若干类,可让用户在Qt应用程序中轻松使用OpenGL。更多内容...

类

QAbstractOpenGLFunctions

该类族的基础类,该类族公开了适用于各 OpenGL 版本和配置文件的所有函数

QOpenGLBuffer

用于创建和管理 OpenGL 缓冲区对象的函数

QOpenGLDebugLogger

支持记录 OpenGL 调试消息

QOpenGLDebugMessage

封装 OpenGL 调试消息

QOpenGLFramebufferObject

封装 OpenGL 帧缓冲区对象

QOpenGLFramebufferObjectFormat

指定 OpenGL 帧缓冲对象的格式

QOpenGLFunctions_1_0

OpenGL 1.0 规范中的所有函数

QOpenGLFunctions_1_1

OpenGL 1.1 规范中的所有函数

QOpenGLFunctions_1_2

OpenGL 1.2 规范中的所有函数

QOpenGLFunctions_1_3

OpenGL 1.3 规范中的所有函数

QOpenGLFunctions_1_4

OpenGL 1.4 规范中的所有函数

QOpenGLFunctions_1_5

OpenGL 1.5 规范中的所有函数

QOpenGLFunctions_2_0

OpenGL 2.0 规范中的所有函数

QOpenGLFunctions_2_1

OpenGL 2.1 规范中的所有函数

QOpenGLFunctions_3_0

OpenGL 3.0 规范中的所有函数

QOpenGLFunctions_3_1

OpenGL 3.1 规范中的所有函数

QOpenGLFunctions_3_2_Compatibility

OpenGL 3.2 兼容性配置文件中的所有函数

QOpenGLFunctions_3_2_Core

OpenGL 3.2 核心配置文件的所有函数

QOpenGLFunctions_3_3_Compatibility

OpenGL 3.3 兼容配置文件的所有函数

QOpenGLFunctions_3_3_Core

OpenGL 3.3 核心配置文件的所有函数

QOpenGLFunctions_4_0_Compatibility

OpenGL 4.0 兼容配置文件的所有函数

QOpenGLFunctions_4_0_Core

OpenGL 4.0 核心配置文件的所有函数

QOpenGLFunctions_4_1_Compatibility

OpenGL 4.1 兼容配置文件的所有函数

QOpenGLFunctions_4_1_Core

OpenGL 4.1 核心配置文件的所有函数

QOpenGLFunctions_4_2_Compatibility

OpenGL 4.2 兼容配置文件中的所有函数

QOpenGLFunctions_4_2_Core

OpenGL 4.2 核心配置文件的所有函数

QOpenGLFunctions_4_3_Compatibility

OpenGL 4.3 兼容配置文件的所有函数

QOpenGLFunctions_4_3_Core

OpenGL 4.3 核心配置文件的所有函数

QOpenGLFunctions_4_4_Compatibility

OpenGL 4.4 兼容配置文件的所有函数

QOpenGLFunctions_4_4_Core

OpenGL 4.4 核心配置文件的所有函数

QOpenGLFunctions_4_5_Compatibility

OpenGL 4.5 兼容配置文件中的所有函数

QOpenGLFunctions_4_5_Core

OpenGL 4.5 核心配置文件的所有函数

QOpenGLFunctions_ES2

OpenGL ES 2 的所有函数

QOpenGLPaintDevice

启用使用 QPainter 向 OpenGL 上下文绘制

QOpenGLPixelTransferOptions

描述了在纹理上传过程中影响像素解包的像素存储模式

QOpenGLShader

允许编译 OpenGL 着色器

QOpenGLShaderProgram

允许链接和使用 OpenGL 着色器程序

QOpenGLTextureBlitter

通过 OpenGL 绘制带纹理四边形的便捷方法

QOpenGLTimeMonitor

封装了一系列 OpenGL 计时器查询对象

QOpenGLTimerQuery

封装了一个 OpenGL 定时器查询对象

QOpenGLVersionFunctionsFactory

提供对指定版本和配置文件的 OpenGL 函数的访问

QOpenGLVersionProfile

表示 OpenGL 上下文的版本,以及(如适用)其配置文件

QOpenGLVertexArrayObject

封装一个 OpenGL 顶点数组对象

QOpenGLVertexArrayObject::Binder

QOpenGLVertexArrayObject::Binder 类是一个便捷类,用于辅助 OpenGL 顶点数组对象的绑定和释放

QOpenGLWindow

QWindow 的便捷子类,用于执行 OpenGL 绘制

详细说明

该 Qt OpenGL 页面包含有关如何使用该模块的信息。

另一个 Qt OpenGL Widgets 库提供了一个 C++ 小部件类,用于将 OpenGL 图形渲染到小部件 UI 中。

QOpenGLWidget

用于渲染 OpenGL 图形的控件

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.