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

Author Topic: A mask for graphics  (Read 4269 times)

0 Members and 1 Guest are viewing this topic.

csiz

  • Newbie
  • *
  • Posts: 30
    • Yahoo Instant Messenger - calinutzu92
    • View Profile
    • Email
A mask for graphics
« on: April 17, 2009, 01:29:38 pm »
How about building a function that creates a mask. Like lets say you have a picture or more and you want them to show on one part of the screen, than you can make another black shape on witch part you want them to show and make it a mask for the other images so they only appear where the shape is.

This could be made using set sub rect when there is only one image, but it gets a lot more complicated if you have animations that change the sub rect... lots of them+text+drawables... and I have no ideea how to do this if you want them to appear on any shape.
My new webpage calinmocanu

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
A mask for graphics
« Reply #1 on: April 17, 2009, 01:48:22 pm »
This is already in the roadmap for SFML 2.0.
Laurent Gomila - SFML developer

 

anything