SFML community forums
Help => General => Topic started by: kekie on July 18, 2017, 03:16:12 am
-
Is it possible to use SFML (+OpenGl if necessary) to read/draw from/to the screen 'directly'? I would like to be able to query the screen state (like a big 2d array of RGB values, or similar) and write to the screen (manipulate specific pixels).
-
Is it possible to use SFML (+OpenGl if necessary) to read/draw from/to the screen 'directly'? I would like to be able to query the screen state (like a big 2d array of RGB values, or similar) and write to the screen (manipulate specific pixels).
No, you will need to use OS specific functions.
-
You can always use an sf::Image or use your own pixel std::vector<Uint8> and call update() on the texture, while running in fullscreen mode.
Unless you mean manipulating whatever shows up on your screen, i.e. in the direction of screen capture. That is not supported by SFML.
-
Ok, it doesn't look like SFML can do what I need it to. Thank you!