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

Author Topic: LoadFromPixels?  (Read 1001 times)

0 Members and 1 Guest are viewing this topic.


  • Full Member
  • ***
  • Posts: 100
    • View Profile
    • http://www.teleforce-blogspot.com
« 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
John Carmack can Divide by zer0.


  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
« Reply #1 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]
Laurent Gomila - SFML developer