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

Author Topic: Uint8 to sf::Image ?  (Read 1455 times)

0 Members and 1 Guest are viewing this topic.

whitegentleman

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Uint8 to sf::Image ?
« on: March 02, 2013, 02:36:55 am »
I was wondering if there was a way in SFML 2 to init sf::Image with sf::Uint8 ?

Because in SFML 1.6 you could use image.loadFrompixel to init sf::image.

thx in advance :)



G.

  • Hero Member
  • *****
  • Posts: 1593
    • View Profile
Re: Uint8 to sf::Image ?
« Reply #1 on: March 02, 2013, 03:08:43 am »
The documentation seems to say so.
sf::Image::create(unsigned int width, unsigned int height, const Uint8 *pixels)

whitegentleman

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Re: Uint8 to sf::Image ?
« Reply #2 on: March 02, 2013, 01:41:25 pm »
Is there a way to Convert From FreeImage To sf::Texture or sf::Image ?
Or do i implement it myself ?

 

anything