Texture Painting
I''m putting together a texture painter program.
I draw on the screen and then glcopyteximage2d to save it.
But glCopyTex is not saving to texture.
i redraw the texture as a background , paint a vertex in othro then glcopy to the texture (background).
Maybe setup? maybe MFC? maybe glCopy?
Bobby
Game Core
I''m not sure I fully understand your question, but if you want to read back from the framebuffer(screen) then have a look at glReadPixels
don''t piss on an electrical fence
I have to draw the background with a texture.
then paint on it. then to save the changes write scene to background texture then repeat alot.
I have a 1/4 screen stays drawn while the rest shrinks to 0,0 as update the texture.
the 1/4 that appears to be 0,0 to 256,256.
Bobby
then paint on it. then to save the changes write scene to background texture then repeat alot.
I have a 1/4 screen stays drawn while the rest shrinks to 0,0 as update the texture.
the 1/4 that appears to be 0,0 to 256,256.
Bobby
Game Core
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement