SFML community forums

Help => Graphics => Topic started by: Ankou on March 26, 2008, 04:54:58 pm

Title: Draw on wxWidgets with double-Buffering
Post by: Ankou on March 26, 2008, 04:54:58 pm
Hi
I want to draw on a control with SFML and wxWidgets(I need SFML there but I also have to draw primitives like lines, so I have to use the normal wxWidgets drawing, too).
It works fine as long as I use wxPaintDC, but when I use wxBufferedPaintDC I can't draw with sfml.
But I need double buffering? What shall I do?
Title: Draw on wxWidgets with double-Buffering
Post by: Laurent on March 27, 2008, 01:52:45 am
I don't think this is a good mix. You can't mix the double-buffered SFML drawing with the wxWidgets one.

By the way, SFML has a Shape class to display simple primitives. It's available on SVN.
Title: Draw on wxWidgets with double-Buffering
Post by: Ankou on March 27, 2008, 03:46:10 am
okay, great.
Uhm... It may sound a bit nooby but ...
how can I download the files at once?
Or do I have to download each file apart?
Title: Draw on wxWidgets with double-Buffering
Post by: Laurent on March 27, 2008, 04:24:48 am
Install a SVN client (like tortoiseSVN on Windows), and just do a checkout of the whole repository. Then recompile.

Very simple ;)
Title: Draw on wxWidgets with double-Buffering
Post by: Ankou on March 27, 2008, 12:44:28 pm
Error: PROPFIND request failed on '/viewvc/sfml'  
Error: PROPFIND of '/viewvc/sfml': 301 Moved (http://sfml.svn.sourceforge.net)  

uhm okay, google finds a lot. But on almost every link it's another problem...
Title: Draw on wxWidgets with double-Buffering
Post by: Redien on March 27, 2008, 12:50:34 pm
Download http://tortoisesvn.tigris.org/ and then do a SVN checkout on https://sfml.svn.sourceforge.net/svnroot/sfml

Easy as pie. ;)

Edit: Oh I see what you're doing now. You can't checkout the https://sfml.svn.sourceforge.net/viewvc/sfml page. You need to use the checkout directory I've written above. ;)
Title: Draw on wxWidgets with double-Buffering
Post by: Ankou on March 27, 2008, 01:35:19 pm
oh okay, yeah that worked.
Thanks

@Laurent: The shapeclass is exactly what I needed, great work!
Title: Draw on wxWidgets with double-Buffering
Post by: Laurent on March 27, 2008, 01:58:15 pm
Quote
@Laurent: The shapeclass is exactly what I needed, great work!

Thanks :)

It's still a first version, so if you have any suggestion to improve it, let me know.