Summary

This chapter has covered the core concepts that are required to display images on your screen. We started by discussing the OpenGL coordinate system for a 2D game. The coordinate system allows you to place objects on the screen. This was followed by a discussion about the camera, OpenGL's way of viewing objects that appear on your screen.

Next, you learned how triangles and quads are used to create simple graphics, and how textures can be applied to these primitives to render 2D images to the screen.

You could finally see an image on your screen that has been rendered by OpenGL. As they say, a picture is worth a thousand lines of code!

In the next chapter, you will learn how to turn your still photography into moving pictures through the ...

Get OpenGL Game Development By Example 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.