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
»
sf::RenderTexture::getPixels(sf::Uint8*)
Print
Pages: [
1
]
Author
Topic: sf::RenderTexture::getPixels(sf::Uint8*) (Read 2711 times)
0 Members and 1 Guest are viewing this topic.
lamogui
Newbie
Posts: 13
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.
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
»
Logged
eXpl0it3r
SFML Team
Hero Member
Posts: 11030
Re: sf::RenderTexture::getPixels(sf::Uint8*)
«
Reply #1 on:
July 02, 2015, 12:51:44 pm »
I assume you've found
sf::RenderWindow::capture()
and
sf::Texture::copyToImage()
via
sf::RenderTexture::getTexture()
then.
Logged
Official FAQ:
https://www.sfml-dev.org/faq.php
Official Discord Server:
https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog:
https://duerrenberger.dev/blog/
Print
Pages: [
1
]
SFML community forums
»
General
»
Feature requests
»
sf::RenderTexture::getPixels(sf::Uint8*)
anything