I am trying to figure out the best framework to implement my OpenGL rendering. I know Replica Island uses a system of two buffers, one that is being actively rendered and one that is being written to by the game logic, when the frame drawing is complete the buffers are swapped but I am having a little bit of difficulty implementing this.
Does anyone know of any tutorials or information on how to implement a system like this? I am having the most difficulty trying to figure out how to implement the data structure for the buffers.
The Replica Island code is a little too specialized for me to easily get to the bottom of it.