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

Author Topic: sf::RenderTexture::getPixels(sf::Uint8*)  (Read 2350 times)

0 Members and 1 Guest are viewing this topic.

lamogui

  • Newbie
  • *
  • Posts: 13
    • View Profile
sf::RenderTexture::getPixels(sf::Uint8*)
« on: July 02, 2015, 09:30:40 am »
Hi

If I remember well there was a function that allow to take screenshot of RenderWindow in previous verions of SFML (http://www.sfml-dev.org/documentation/1.6/classsf_1_1RenderWindow.php#a7066f80705fb53c2c4a9fe068fc47a8a) (I can't find it at http://www.sfml-dev.org/documentation/2.3-fr/classsf_1_1RenderWindow.php).

I think that could be cool to have this function again.
  :-X

With the FBO support it could be interesting to extend the function in sf::RenderTexture. (using glReadPixels). It can also be supported for "classic" RenderTextures using glTexImage.
Btw I could be interesting to make public the function priv::RenderTextureImplFBO::isAvailable().

I need this functionnality so whatever you decide I will begin to develop something here https://github.com/lamogui/SFML

Sorry for my bad english.








« Last Edit: July 02, 2015, 10:11:06 am by lamogui »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10819
    • View Profile
    • development blog
    • Email
Re: sf::RenderTexture::getPixels(sf::Uint8*)
« Reply #1 on: July 02, 2015, 12:51:44 pm »
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/