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

Author Topic: Getting pixels from sf::RenderWindow  (Read 2063 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: 32498
    • 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

 

anything