Qt OpenGL 使用例

これらの例は Qt OpenGLモジュールの使い方を説明します。

Qt は OpenGL 実装との統合をサポートしており、開発者はハードウェアアクセラレーションによる 3D グラフィックスを従来のユーザーインターフェースと一緒に表示することができます。

これらの例では、QtアプリケーションでOpenGLを利用するための基本的なテクニックを説明します。

2D Painting Example

2D Painting の例では、QPainter と QOpenGLWidget を組み合わせて使用し、サポートされているハードウェアで 2D グラフィックスを高速表示する方法を示します。

Cube OpenGL ES 2.0 example

テクスチャ付きの3D立方体をユーザー入力によって手動で回転させる方法を示しています。

Hello GL2 Example

Hello GL2 の例では、Qt で提供される OpenGL 関連クラスの基本的な使い方を示します。

Hello GLES3 Example

QOpenGLExtraFunctions による OpenGL ES 3.0 関数のデモ。

OpenGL Window Example

この例では、OpenGLを使用する目的で、最小限のQWindowベースのアプリケーションを作成する方法を示します。

QOpenGLWidget Stereoscopic Rendering Example

この例では、ステレオスコピック・レンダリングをサポートする最小限の QOpenGLWidget ベースのアプリケーションを作成する方法を示します。

Textures Example

Texturesの例では、OpenGLとQtの両方を使用してグラフィックスを表示するアプリケーションで、Qtのイメージクラスをテクスチャとして使用する方法を示します。

© 2025 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.