If you want your game or player to take in-game snapshots and apply them as textures, this recipe will show you how. This can be very useful if you plan to implement an in-game photo gallery or display a snapshot of a key moment at the end of a level (racing games and stunt simulations use this feature a lot). For this particular example, we will take a snapshot of a framed region of the screen and print it in the top-right corner of the display:
![](https://static.packt-cdn.com/products/9781788471909/graphics/assets/fefcf742-7a2f-4b0c-a22e-40be43be685f.png)