Create a basic 3-D application

In this tutorial, we'll show you how to create a rotating, multicolored cube using OpenGL ES. When you create a new project in the QNX Momentics IDE and choose the BlackBerry Tablet OS OpenGL ES 1.1 Application Template Project, you get an OpenGL ES application that displays a square on the screen. We'll change this template to display a cube instead of a square.

To see the complete code that is used in this tutorial, you can download the CubeRotate sample from GitHub.

Device image showing the finished 3-D app.

You will learn to

  • Create and configure your project
  • Create and color your cube
  • Give the cube a home and show it off