A tutorial to use OpenGL within Qt Widgets applications. A comprehensive discussion of many Qt Wrapper and convenience classes and functions to assist with OpenGL development. Includes discussion of best-practice approaches for many topics, including input handling and battery-efficient render-on-demand.
The generated documentation can be found on:
The offline-PDF version can be downloaded from the repo:
https://github.com/ghorwin/OpenGLWithQt-Tutorial/raw/master/docs/OpenGLQtTutorial.pdf
Tutorial discusses modern OpenGL approach with shader programs and vertex buffers/arrays. The following Qt classes are discussed:
QMatrix4x4
QVector3D
andQVector4D
QOpenGLWindow
andQOpenGLWidget
QOpenGLContext
,QSurfaceFormat
andQOpenGLFunctions
QOpenGLShaderProgram
QOpenGLTexture
QOpenGLFramebufferObject
QOpenGLVertexArrayObject
andQOpenGLBuffer
QOpenGLDebugLogger
QOpenGLTimerQuery
,QOpenGLTimeMonitor
, andQElapsedTimer
Uses Asciidoctor. Go to directory text
and run build.sh
.