Monthly Archives: September 2020

OpenGL 2D Facade (10): Layers

In this post, we extend the facade to handle several layers. We also see how to draw with transparency.

Posted in Tutorial | Tagged , , | Leave a comment

OpenGL 2D Facade (9): Load a level

Before handling the rendering of several layers, we need data to build them. Rather than copy and paste many ids from a Tiled map file, I propose to read them using the TMX library.

Posted in Tutorial | Tagged , , | Leave a comment

OpenGL 2D Facade (8): Facade

I have enough content to start a facade: I refactorize all the code to satisfy the properties of the Facade pattern and get a more robust and extensible implementation.

Posted in Tutorial | Tagged , , , | Leave a comment