Je ne vois pas comment faire plus simple !! on peut coder avec GraphX sans même savoir ce qu'est le "triple swap buffering".
On va citer ce qui s'est passé sur le forum de TIGCC:
Post initial: "Are there any tutorials on double buffering in greyscale? If there are not any could some one explain how to do it? (I have read the the documentation on it but i'm still confused.)
thanks"
Thibaut: " I don't know.
Some powerful graphic libraries which implement double-buffering display very simply exist: Xlib, GenLib and GraphX.
[EDIT by Kevin Kofler: Removed links. Don't try to advertise your own graphics library here. Do not try to recommend DLL graphics libraries here either. Next time I will remove the names too.]"
Myself: "Some good games feature double buffering, without using a messy dynamic library (GraphX doesn't, but the two others do): have a look at Duke 68k, available on ticalc.org.
Thibaut: if the user is not familiar with double buffering, I am not sure he will understand everything in the GraphX documentation (first it's in French, and second the explanation might be a little short). I didn't check if the documentation was good, though, so I might be telling wrong things."
Kevin: "You do not need any external library for double-buffering support. It is built-in into the TIGCCLIB grayscale support.
And no, there is no tutorial yet. Is there a specific part of our documentation you did not understand? Or do you just want a small example to show how everything interacts."
Thibaut: "Lionel: He doesn't understand how to use the double-buffering functionnality of TIGCCgray.
With GraphX and other specialized libraries, the user don't have to understand the mechanism.
For exemple, with Graphx, he just have to write "GX_DisplayWorkBuffer" to display modifications to the screen! It's GraphX which <handles> the synchronisation and the swap buffering, not the user
[EDIT by Kevin Kofler: "gère" = "handles"]
Kevin: ">With GraphX and other specialized libraries, the user don't have to understand the mechanism.
That's wrong. You have to understand double-buffering to use it, whether you use our routines or yours.
<< For exemple, with Graphx, he just have to write "GX_DisplayWorkBuffer" to display modifications to the screen! It's GraphX which <handles> the synchronisation and the swap buffering, not the user >>
What's the difference between calling GX_DisplayWorkBuffer and calling GrayDBufToggleSync?
Yes, you need to wait for synchronization once more after calling GrayDBufToggleSync on HW1. (Use GrayWaitNSwitches(2); after GrayDBufToggleSync .) I think that this needs to be fixed (it should be done by the GrayDBufToggleSync macro)."
Thibaut: "Kevin: the "link" balise exist for what?????????????"
Kevin "To give links related to the topic, not to advertise some programs (at least not in the TIGCC Programming section, and not when it is unrelated to the thread!).
He wants an example for using the built-in double-buffering support in TIGCCLIB, not advertising for external graphics libraries."