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

Author Topic: SFML 2.0 equivalent of SFML 1 Image::LoadFromPixels?  (Read 3818 times)

0 Members and 1 Guest are viewing this topic.

Predator106

  • Newbie
  • *
  • Posts: 43
    • View Profile
SFML 2.0 equivalent of SFML 1 Image::LoadFromPixels?
« on: December 03, 2012, 02:46:22 am »
same as my previous topic, but need a loadfrompixels equivalent. kthxbai

cire

  • Full Member
  • ***
  • Posts: 138
    • View Profile
Re: SFML 2.0 equivalent of SFML 1 Image::LoadFromPixels?
« Reply #1 on: December 03, 2012, 03:11:26 am »
Is it really that hard to visit the documentation for sf::Image?

Predator106

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: SFML 2.0 equivalent of SFML 1 Image::LoadFromPixels?
« Reply #2 on: December 03, 2012, 03:18:54 am »
Is it really that hard to visit the documentation for sf::Image?

I did. I don't see it there. But apparently it is that hard to point me in the right direction in lieu of condescension.
« Last Edit: December 03, 2012, 03:22:22 am by Predator106 »

Predator106

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: SFML 2.0 equivalent of SFML 1 Image::LoadFromPixels?
« Reply #3 on: December 03, 2012, 03:36:27 am »
ah, it guess ::create(w,h, uint8*) is what i need.

masskiller

  • Sr. Member
  • ****
  • Posts: 284
  • Pointers to Functions rock!
    • MSN Messenger - kyogre_jb@hotmail.com
    • View Profile
    • Email
Re: SFML 2.0 equivalent of SFML 1 Image::LoadFromPixels?
« Reply #4 on: December 03, 2012, 04:48:24 am »
Given you have made two threads over the same issue it would be better to keep on posting all these types of doubts (if you haven't solved them after going to the doc that is) in one thread, and not making a thread per question when your purpose is exactly the same.
Programmer, Artist, Composer and Storyline/Script Writer of "Origin of Magic". If all goes well this could turn into a commercial project!

Finally back into the programming world!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: SFML 2.0 equivalent of SFML 1 Image::LoadFromPixels?
« Reply #5 on: December 03, 2012, 08:12:30 am »
Quote
Given you have made two threads over the same issue it would be better to keep on posting all these types of doubts (if you haven't solved them after going to the doc that is) in one thread, and not making a thread per question when your purpose is exactly the same.
I'm ok with multiple posts, it's the same kind of question but not the same class/function.
Posting both questions in the same thread would be ok too, of course.
Laurent Gomila - SFML developer

Predator106

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: SFML 2.0 equivalent of SFML 1 Image::LoadFromPixels?
« Reply #6 on: December 03, 2012, 04:44:42 pm »
yeah, i kind of prefer to separate it as long as it doesn't get too out of hand.

speaking of which, is there a porting guide for sfml 1 -> 2?

if not, i should add these things to the wiki. obviously i'm not going to list every class change, just the not so obvious ones i run into.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: SFML 2.0 equivalent of SFML 1 Image::LoadFromPixels?
« Reply #7 on: December 03, 2012, 04:51:29 pm »
It's probably not up-to-date, but it should have most of the important modifications:
http://en.sfml-dev.org/forums/index.php?topic=5343.0
Laurent Gomila - SFML developer

Predator106

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: SFML 2.0 equivalent of SFML 1 Image::LoadFromPixels?
« Reply #8 on: December 03, 2012, 05:09:46 pm »
ok kewl, i'll take this thread, add to it and put it into the wiki somewhere. which is where it should ultimately be, honestly.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: SFML 2.0 equivalent of SFML 1 Image::LoadFromPixels?
« Reply #9 on: December 03, 2012, 08:13:04 pm »
Ultimately, I should write an official porting guide and add it to the tutorials.
Laurent Gomila - SFML developer

Predator106

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: SFML 2.0 equivalent of SFML 1 Image::LoadFromPixels?
« Reply #10 on: December 03, 2012, 08:44:01 pm »
pft, you should get sfml 2.0 released first, you idealistic jerk ;p