LoginSignup
2
1

More than 3 years have passed since last update.

Qt OpenGLプログラム 3D 立方体表示

Last updated at Posted at 2021-04-24

実行サンプル

機能は以下
・マウス移動で図形回転
・マウスホイールで図形ズーム
image.png

実行環境

windows10
Qt5.15
VisualStudio2019

実行手順

特記なし、通常通りの手順。(QtCreaterでビルドして、実行。)

ソースコード

※プログラム作成中です。動作はします。(必要ないコードが入っていたり整ってませんが。。)
https://github.com/sakurataiko1/Cplus_openGL/tree/main/Qt_openGL_QtTutorial_3D_shader_cube/MyOpenGL2_my01shader

関連資料

■ OpenGLコードの参考 Qt公式プログラム
http://ftp.jaist.ac.jp/pub/qtproject/learning/developerguides/qtopengltutorial/
ソースコード: opengl_src.zip
解説: OpenGLTutorial.pdf

■ GUI参考 (widget の格上げ設定なども)
https://www.bogotobogo.com/Qt/Qt5_OpenGL_QGLWidget.php

■ Qtの設定参考。(シェーダプログラムの追加とリソースファイルへの登録.vsh, fsh)
https://armadillo.atmark-techno.com/blog/1562/1988

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1