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

Author Topic: Multiple layer support for sprite sheets  (Read 2758 times)

0 Members and 1 Guest are viewing this topic.

Bryston

  • Newbie
  • *
  • Posts: 8
    • View Profile
Multiple layer support for sprite sheets
« on: March 17, 2013, 03:19:20 pm »
Instead of using the tools in
sf::RenderTexture
to build up a composited image for animations it would be cool if the library had XCF support so that layers could be turned on/off with switches. The LPC sprite sheets got me thinking about this.

JayArby

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Re: Multiple layer support for sprite sheets
« Reply #1 on: May 05, 2013, 11:20:26 pm »
You probably shouldn't be using a RenderTexture for that--just draw the layers directly to the RenderWindow. You can write a class for layered spritesheets (I have written such a class); that's really too high-level a feature for SFML.