Board index » delphi » Any suggestions for Double Buffering?

Any suggestions for Double Buffering?

Hi.
I want to place a rotating wire-frame on a form by using
'Canvas.LineTo'.
The only problem is, because the image has to be updated, that it
flickers
a lot. I know this can be solved by using a drawbuffer and a display
buffer,
but I don't know how to do this. Has anyone got any ideas?

Thanks in advance.

(P.S. If you want to reply to me, please remove the '27' from my
mailaddress)

 

Re:Any suggestions for Double Buffering?


Quote
Leon Bouquiet wrote in message <366EE187.505C5...@27net.HCC.nl>...

I want to place a rotating wire-frame on a form by using

Quote
>'Canvas.LineTo'.
>The only problem is, because the image has to be updated, that it
>flickers
>a lot. I know this can be solved by using a drawbuffer and a display
>buffer,
>but I don't know how to do this. Has anyone got any ideas?

Look for several links about Flicker in the Graphics section of
www.efg2.com/lab/library/Delphi/Graphics/Algorithms.htm

Happy Holidays!

efg
_________________________________
efg's Computer Lab:       www.efg2.com/lab
Delphi Books:  www.efg2.com/lab/TechBooks/Delphi.htm

Earl F. Glynn     E-Mail:  EarlGl...@att.net
Overland Park, KS  USA

Re:Any suggestions for Double Buffering?


This is amply covered in the DirectX tutorials on Microsofts web site -
tyhough of course examples are in C not Delphi.  Still the discussion of
prionciples is useful backgrounding.

The DelphiX and DGC game libraries contain full source and illustrate double
buffering in DirectX.
Get them (and losts of other useful stuff) on the Delphi Super Page.

Quote
Leon Bouquiet wrote in message <366EE187.505C5...@27net.HCC.nl>...

|Hi.
|I want to place a rotating wire-frame on a form by using
|'Canvas.LineTo'.
|The only problem is, because the image has to be updated, that it
|flickers
|a lot. I know this can be solved by using a drawbuffer and a display
|buffer,
|but I don't know how to do this. Has anyone got any ideas?
|
|Thanks in advance.
|
|(P.S. If you want to reply to me, please remove the '27' from my
|mailaddress)
|

Other Threads