21

Parallax Backgrounds and Shaders

This is the last chapter where we will be working on our game. It will be fully playable with all the features by the end. Here is what we will do to wrap up the Run game:

  • Learn about OpenGL, shaders, and the Graphics Library Shading Language (GLSL)
  • Finish the CameraGraphics class by implementing a scrolling background and a shader
  • Code a shader for the game by using someone else’s code
  • Run the completed game

The code for the completion of this chapter can be found in the Run7 folder. Let’s get started by learning about the OpenGL, shaders and GLSL.

Learning about OpenGL, shaders, and GLSL

The Open Graphics Library (OpenGL) is a programming library that handles 2D as well as 3D graphics. OpenGL works on ...

Get Beginning C++ Game Programming - Third 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.