Game Development Reference
In-Depth Information
Chapter 4. Manipulating a 2D Camera
In this chapter, we will talk about cameras and OpenGL , and how we can use them to our
benefit. We will cover the topics of cameras in depth, but with regards to OpenGL, we have
only briefly mentioned its integration in SFML . The OpenGL API is too big to be covered
in this topic, let alone a single chapter. If you don't know how to write OpenGL code or do
not have any desire to use OpenGL, then it is fine to skip the last part of this chapter. On
the other hand, if you want to know how OpenGL can help you, take a look at what the
second part of the chapter offers.
In this chapter, we will cover the following topics:
• What is a camera?
• Manipulating cameras with sf::View
• What is OpenGL?
• Using OpenGL inside SFML
Search WWH ::

Custom Search