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

Author Topic: Drawing outside the window  (Read 1875 times)

0 Members and 1 Guest are viewing this topic.

kekie

  • Newbie
  • *
  • Posts: 5
    • View Profile
Drawing outside the window
« 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).

Gleade

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Re: Drawing outside the window
« Reply #1 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.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Drawing outside the window
« Reply #2 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

kekie

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Drawing outside the window
« Reply #3 on: July 18, 2017, 03:47:18 am »
Ok, it doesn't look like SFML can do what I need it to. Thank you!

 

anything