SFML community forums

Help => Graphics => Topic started by: koolgraph on June 06, 2011, 06:13:09 am

Title: sf::Image and SizeLimit
Post by: koolgraph on June 06, 2011, 06:13:09 am
is There any restriction regarding the size limit of an sf::Image ?
Title: sf::Image and SizeLimit
Post by: Laurent on June 06, 2011, 07:49:24 am
Yes, it is limited to sf::Image::GetMaximumSize(), which depends on your graphics card and driver.
Title: sf::Image and SizeLimit
Post by: koolgraph on June 06, 2011, 09:16:36 am
i see... So what if i put an image too large for the client graphic card ?

i also don't see GetMaximumSize(), note that i'm on 1.6
Title: sf::Image and SizeLimit
Post by: Laurent on June 06, 2011, 09:29:48 am
Quote
i see... So what if i put an image too large for the client graphic card ?

Loading will fail.

Quote
i also don't see GetMaximumSize(), note that i'm on 1.6

Oh, ok so it's probably only in SFML 2. If you want to do something similar with SFML 1.6 you can use the underlying OpenGL call directly.