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

Author Topic: SFML [2.0] Lot of images in one file  (Read 1326 times)

0 Members and 1 Guest are viewing this topic.

Dawidsoni

  • Newbie
  • *
  • Posts: 6
    • View Profile
SFML [2.0] Lot of images in one file
« on: November 17, 2012, 05:41:48 pm »
Can I save a lot of images in one file?

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: SFML [2.0] Lot of images in one file
« Reply #1 on: November 17, 2012, 05:58:27 pm »
Can you ask in a more precise way?

You can extract different objects in your image when you specify texture rects. Take a look at sf::Image and sf::Texture.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Dawidsoni

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: SFML [2.0] Lot of images in one file
« Reply #2 on: November 17, 2012, 06:19:18 pm »
I have a computer program, which loading lot of images from file and use them to create a map to game. I save all map information except images. I want to save them with everything in one file.

eigenbom

  • Full Member
  • ***
  • Posts: 228
    • View Profile
Re: SFML [2.0] Lot of images in one file
« Reply #3 on: November 17, 2012, 11:25:18 pm »
Use zlib to zip everything.