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

Author Topic: Getting pixels from sf::RenderWindow  (Read 1645 times)

0 Members and 1 Guest are viewing this topic.

Wine

  • Newbie
  • *
  • Posts: 11
    • View Profile
Getting pixels from sf::RenderWindow
« on: April 01, 2010, 06:33:35 pm »
How can I get pixels from sf::RenderWindow? I'm going to get pixels and then update it on WM_PAINT message in my game (I don't need realtime rendering). On the other hand; can I connect HDC whit sf::RenderWindow?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Getting pixels from sf::RenderWindow
« Reply #1 on: April 01, 2010, 07:27:28 pm »
Quote
How can I get pixels from sf::RenderWindow?

Code: [Select]
sf::Image image = window.Capture();

Quote
On the other hand; can I connect HDC whit sf::RenderWindow?

No, since SFML doesn't give access to the internal HWND.
Laurent Gomila - SFML developer