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

Author Topic: Tile Engine - Image/Texture? What's best to use for sprites  (Read 1680 times)

0 Members and 1 Guest are viewing this topic.

Luponius

  • Newbie
  • *
  • Posts: 22
    • View Profile
Tile Engine - Image/Texture? What's best to use for sprites
« on: April 27, 2013, 02:44:05 am »
I'm currently building the foundations for a working tile engine, prior to getting to develop more content to test with, and I'm stuck between 2 choices, Images and Textures.  Can someone explain what would be most appropriate.

Also I noticed sprites don't have a setImage anymore, or it was moved somehow, and setTexture has no intention of taking an Image since I see no overload to do that, how are we supposed to treat images, what are they there for?

Thanks =]

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Tile Engine - Image/Texture? What's best to use for sprites
« Reply #1 on: April 27, 2013, 08:39:17 am »
how are we supposed to treat images, what are they there for?
This is explained in the sf::Image documentation.

Also, there is almost weekly a thread about tile "engines"... Please search for older threads in the forum. Sometimes you get better results when you search via Google on this site.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development: