Creating a viewport

Entwined with the concept of a camera is the concept of a viewport. So we will also create our own viewport. A viewport is a 2D surface which is used for rendering. We can think of it as the paper on which a photo is taken. The paper has a background color and if the photo doesn't cover this region, the background color will be seen.

Get Ogre 3D 1.7 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.