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

Author Topic: sf::Image and SizeLimit  (Read 1256 times)

0 Members and 1 Guest are viewing this topic.

koolgraph

  • Newbie
  • *
  • Posts: 48
    • View Profile
sf::Image and SizeLimit
« on: June 06, 2011, 06:13:09 am »
is There any restriction regarding the size limit of an sf::Image ?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
sf::Image and SizeLimit
« Reply #1 on: June 06, 2011, 07:49:24 am »
Yes, it is limited to sf::Image::GetMaximumSize(), which depends on your graphics card and driver.
Laurent Gomila - SFML developer

koolgraph

  • Newbie
  • *
  • Posts: 48
    • View Profile
sf::Image and SizeLimit
« Reply #2 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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
sf::Image and SizeLimit
« Reply #3 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.
Laurent Gomila - SFML developer

 

anything