Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Draw on wxWidgets with double-Buffering  (Read 7318 times)

0 Members and 2 Guests are viewing this topic.

Ankou

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Draw on wxWidgets with double-Buffering
« 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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Draw on wxWidgets with double-Buffering
« Reply #1 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.
Laurent Gomila - SFML developer

Ankou

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Draw on wxWidgets with double-Buffering
« Reply #2 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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Draw on wxWidgets with double-Buffering
« Reply #3 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 ;)
Laurent Gomila - SFML developer

Ankou

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Draw on wxWidgets with double-Buffering
« Reply #4 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...

Redien

  • Newbie
  • *
  • Posts: 30
    • View Profile
Draw on wxWidgets with double-Buffering
« Reply #5 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. ;)

Ankou

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Draw on wxWidgets with double-Buffering
« Reply #6 on: March 27, 2008, 01:35:19 pm »
oh okay, yeah that worked.
Thanks

@Laurent: The shapeclass is exactly what I needed, great work!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Draw on wxWidgets with double-Buffering
« Reply #7 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.
Laurent Gomila - SFML developer

 

anything