SFML community forums

Help => General => Topic started by: kekie on July 18, 2017, 03:16:12 am

Title: Drawing outside the window
Post 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).
Title: Re: Drawing outside the window
Post by: Gleade on July 18, 2017, 03:36:09 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).

No, you will need to use OS specific functions.
Title: Re: Drawing outside the window
Post by: eXpl0it3r on July 18, 2017, 03:38:38 am
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.
Title: Re: Drawing outside the window
Post by: kekie on July 18, 2017, 03:47:18 am
Ok, it doesn't look like SFML can do what I need it to. Thank you!