Posted Thursday, 4 June, 2009 - 10:21 by the Fiddler
Are you referring to xor drawing? The link has details on how to implement this.
Since xor drawing is deprecated, I would suggest using CopyTexImage2D to copy your drawing to a texture. You can then use this texture to refresh damaged regions without redrawing the whole screen.
Comments
Re: Drawing the reversible frame without redrawing the all ...
Are you referring to xor drawing? The link has details on how to implement this.
Since xor drawing is deprecated, I would suggest using CopyTexImage2D to copy your drawing to a texture. You can then use this texture to refresh damaged regions without redrawing the whole screen.
Re: Drawing the reversible frame without redrawing the all ...
Thanks, Fiddler.
I will try to use this 2 ways.
Re: Drawing the reversible frame without redrawing the all ...
I can't to find any example how to use CopyTexImage2D.
This is my wrong code (in Tao.Framework):
What is wrong?
Re: Drawing the reversible frame without redrawing the all ...
You are not setting the read buffer anywhere in the code. Check the specs:
glCopyTexImage2D defines a two-dimensional texture image with pixels from the current GL_READ_BUFFER.
In other words, you need to use glReadBuffer to indicate the source of the copy.
Re: Drawing the reversible frame without redrawing the all ...
It does not help .
I correctly use CopyTexImage2D?
Thanks!
Re: Drawing the reversible frame without redrawing the all ...
This looks just about right. Try calling glFinish() before glCopyTexImage2D().