Pop quiz

Q1. Which of the following programming languages is accepted by the QOpenGLShader::compileSourceCode() function?

  1. C
  2. C++
  3. GLSL

Q2. Which virtual function of the QOpenGLWindow class should you implement to perform OpenGL painting?

  1. paintGL()
  2. paintEvent()
  3. makeCurrent()

Q3. When should you delete the object of your QVulkanWindowRenderer subclass?

  1. In the destructor of the QVulkanWindow subclass
  2. After deleting the QVulkanInstance object
  3. Never

Get Game Programming using Qt 5 Beginner's Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.