Chapter 3. Graphics – Common Methods
This chapter will cover the following recipes:
- Creating a window in libSDL
- Creating surfaces
- Surfaces manipulation
- Using colors
- Cursor manipulation
- Initializing the graphics mode with OpenGL
- Getting OpenGL information
- Using OpenGL extensions with GLEW and Lua
- Loading images with SDL_image
- Creating textures
- Loading and using bitmap fonts
- Loading and using TrueType fonts
- Displaying the text
- Creating texture atlas with the rover-design pattern
- Using tiles and tilesets in the game