Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
General
»
Feature requests
»
ReadPixel() and WritePixel() functions for sf::RenderWindow
Print
Pages: [
1
]
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
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).
Logged
Everything is predetermined.
Laurent
Administrator
Hero Member
Posts: 32498
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.
Logged
Laurent Gomila - SFML developer
Print
Pages: [
1
]
SFML community forums
»
General
»
Feature requests
»
ReadPixel() and WritePixel() functions for sf::RenderWindow
anything