SFML community forums

Help => Graphics => Topic started by: WitchD0ctor on August 11, 2011, 12:26:06 pm

Title: LoadFromPixels?
Post by: WitchD0ctor on August 11, 2011, 12:26:06 pm
What happened to it? I can't seem to find it in the new sf::Texture and sf::Image Classes.
Am I missing something?
I am trying to upgrade my project to the newer sfml2 from the git and
My Theora Video loader heavily relies on that method
Title: LoadFromPixels?
Post by: Laurent on August 11, 2011, 12:56:19 pm
In sf::Image it was renamed to Create(width, height, pixels).

In sf::Texture you don't need it anymore. Read the main documentation of the class, there is an example for streaming real-time data such as a video.[/code]