Trying to write on C with GLUT'a "Life" Conway . As I understood for the movement of "organisms" I need to process the input buffer and write the changes to another while resetting the original, etc. in a circle (correct if wrong). The question itself: how to remember the information transferred to the incoming buffer, so that you can work with it later?

PS I apologize in advance for the possible incorrect wording of sentences.

  • one
    OpenGL has nothing to do with it. He is only for drawing. All calculations should be done either on the CPU, or in OpenCL or equivalent. - Kromster 4:32 pm
  • If we are talking about double output buffering, then at this stage you need to know about it only that you need to remember to switch these buffers with the appropriate command after each frame. For life you just need to keep in memory one current array (or a more appropriate structure), and make changes to a new one, which then becomes the current one. - extrn 4:34 pm
  • But what about the render in the texture and in the next step of its input? - Stranger in the Q
  • @StrangerintheQ hardly it is required by OPU :) - extrn pm
  • @extrn, I don `t know, just the game of life is very easy to do this way :) - Stranger in the Q

0