SFML community forums
Help => Graphics => Topic started by: OniLinkPlus on October 23, 2010, 07:30:29 am
-
Is there a size limit for images loaded with sf::Image::LoadFromPixels?
-
Yes, the same as with LoadFromFile and LoadFromMemory. This is the maximum texture size that the graphics cards supports, so it has nothing to do with how you load it.
-
Yes, the same as with LoadFromFile and LoadFromMemory. This is the maximum texture size that the graphics cards supports, so it has nothing to do with how you load it.
Darn, I was hoping you had gotten around to removing the hardware limitations.
-
I can't, so don't hope too much ;)
-
Laurent, haven't you planned to split up an image into several ones internally in the past? I guess I remember something related to that, but could be wrong.
-
It's not easy to do, SFML is too low-level for that, I can't encapsulate and hide this kind of stuff easily (especially because of the sf::Sprite class). To make it possible, I would have to merge sprite and image into a single class -- someone already did that by the way, maybe it's available on the wiki.
-
Okay.