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

Author Topic: ReadPixel() and WritePixel() functions for sf::RenderWindow  (Read 2728 times)

0 Members and 1 Guest are viewing this topic.

zeocyte

  • Newbie
  • *
  • Posts: 9
    • View Profile
ReadPixel() and WritePixel() functions for sf::RenderWindow
« on: December 17, 2011, 05:33:18 am »
I think that we should really implement this feature on SFML's graphics.

Please note that there's lots of useful things that these functions can do like rendering stars, graphical effects, dotted lines, etc.

And its just simple to implement (glReadPixels() perhaps).
Everything is predetermined.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
ReadPixel() and WritePixel() functions for sf::RenderWindow
« Reply #1 on: December 17, 2011, 10:35:35 am »
This is a very bad and outdated approach, graphics cards are made for rendering primitives, not writing pixels directly the back buffer.

The new graphics API in SFML 2 allows to render points and lines, and for effects, you can use shaders.
Laurent Gomila - SFML developer

 

anything