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

Author Topic: sf::Image::LoadFromPixels Size Limit  (Read 1708 times)

0 Members and 1 Guest are viewing this topic.

OniLinkPlus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
sf::Image::LoadFromPixels Size Limit
« on: October 23, 2010, 07:30:29 am »
Is there a size limit for images loaded with sf::Image::LoadFromPixels?
I use the latest build of SFML2

Laurent

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

OniLinkPlus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
sf::Image::LoadFromPixels Size Limit
« Reply #2 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.
I use the latest build of SFML2

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
sf::Image::LoadFromPixels Size Limit
« Reply #3 on: October 24, 2010, 10:35:41 am »
I can't, so don't hope too much ;)
Laurent Gomila - SFML developer

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1485
    • View Profile
    • Blog
    • Email
sf::Image::LoadFromPixels Size Limit
« Reply #4 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.

Laurent

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

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1485
    • View Profile
    • Blog
    • Email
sf::Image::LoadFromPixels Size Limit
« Reply #6 on: October 24, 2010, 04:21:47 pm »
Okay.

 

anything