Closed jarroddavis68 closed 2 months ago
It's deprecated, the alternative is listed in the documentation:
Use a sfTexture and its sfTexture_updateFromRenderWindow(sfTexture, const sfRenderWindow, unsigned int, unsigned int) function and copy its contents into an sfImage instead.
ahh, many thanks. I im in the process of converting codebase over to 3.0 and noticed it was gone. Ok, thanks again.
capture
has been deprecated for a while and was/will be removed in SFML 3.
Use a sf::Texture and its sf::Texture::update(const Window&) function and copy its contents into an sf::Image instead.
sf::Vector2u windowSize = window.getSize();
sf::Texture texture;
texture.create(windowSize.x, windowSize.y);
texture.update(window);
sf::Image screenshot = texture.copyToImage()
did it go away? How, now to reproduce the functionality? Do I have to drop down to opengl now?