SFML community forums

Help => Graphics => Topic started by: OniLinkPlus on October 23, 2010, 07:30:29 am

Title: sf::Image::LoadFromPixels Size Limit
Post by: OniLinkPlus on October 23, 2010, 07:30:29 am
Is there a size limit for images loaded with sf::Image::LoadFromPixels?
Title: sf::Image::LoadFromPixels Size Limit
Post by: Laurent on October 23, 2010, 09:40:03 am
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.
Title: sf::Image::LoadFromPixels Size Limit
Post by: OniLinkPlus on October 23, 2010, 11:12:33 pm
Quote from: "Laurent"
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.
Title: sf::Image::LoadFromPixels Size Limit
Post by: Laurent on October 24, 2010, 10:35:41 am
I can't, so don't hope too much ;)
Title: sf::Image::LoadFromPixels Size Limit
Post by: Tank on October 24, 2010, 12:25:08 pm
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.
Title: sf::Image::LoadFromPixels Size Limit
Post by: Laurent on October 24, 2010, 01:59:25 pm
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.
Title: sf::Image::LoadFromPixels Size Limit
Post by: Tank on October 24, 2010, 04:21:47 pm
Okay.