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

Author Topic: SFML window in MFC  (Read 14271 times)

0 Members and 2 Guests are viewing this topic.

TheMiss

  • Newbie
  • *
  • Posts: 9
    • View Profile
SFML window in MFC
« Reply #15 on: February 27, 2010, 05:05:25 pm »
After reading this thread.

I just have a look at gtkmm, Ultimate++, wxWidgets.

gtkmm doesn't satisfy me. cuz_its_coding_style_is_ugly_to_me_as_a_main_lib().

Ultimate++ seems OK. and it has comparisons to its competitor.

Anyway, I don't see how it can be used with MSVC.

wxWidgets seems OK as it can be used with MSVC and ItsCodingStyleIsOK() (In fact, it looks like MFC).

So, I'm just learning wxWidgets.


By the way, I have a look at wxSFMLCanvas and compile it.

Does this code say "rotate sprite when click left or right"?

Code: [Select]
// Rotate the sprite
        if (GetInput().IsMouseButtonDown(sf::Mouse::Left))  mySprite.Rotate( GetFrameTime() * 50);
        if (GetInput().IsMouseButtonDown(sf::Mouse::Right)) mySprite.Rotate(-GetFrameTime() * 50);


It cannot rotate when I click it :(

I grab SFML2 from svn repository rev 1422 :wink:

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
SFML window in MFC
« Reply #16 on: February 27, 2010, 05:17:12 pm »
Quote
Does this code say "rotate sprite when click left or right?"

Yes, it should do that. Indeed it doesn't work, but I'm pretty sure that it did before.
Anyway, you can still use wxWidgets regular events ;)
Laurent Gomila - SFML developer