Saving Frame Buffer - Printable Version
+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Graphics & Audio Programming (/forum-9.html)
+--- Thread: Saving Frame Buffer (/thread-2681.html)
Saving Frame Buffer - nicromonicon - Apr 8, 2008 11:59 AM
hey guys,im a using Opengl with C# (Tao Framework), im a making a simple coloring book,so far so good,but when i do actually "color" the scene is the problem
see i have three circles,i colored the first one,no problem,but when i color the second,the 1st on returns to white!
i thought i could attach each circle to its own color,but thats not generic,what i need is to save the whole scene,instead of re-drawing it every time
is there something like pushmatrix,popmatrix but whith scenes?
thanks in advance
Saving Frame Buffer - OneSadCookie - Apr 8, 2008 06:24 PM
No, you need to store all your scene information yourself and redraw it each frame.
Saving Frame Buffer - stevejohnson - Apr 9, 2008 08:23 AM
When the user is drawing, save the data from every frame. When they finish a stroke, redraw it all to the buffer and store it in a pixmap. Redraw the pixmap under everything else. Repeat as necessary.