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

Author Topic: Unvisible Sprite background?  (Read 2964 times)

0 Members and 1 Guest are viewing this topic.

raXor

  • Newbie
  • *
  • Posts: 7
    • View Profile
Unvisible Sprite background?
« on: January 07, 2009, 10:48:54 pm »
Hello, I'm searching for a possibility to make the background of a Sprite unvisible.
Like in SDL the function
Code: [Select]
SDL_SetColorKey (m_pImage, SDL_SRCCOLORKEY,
                   SDL_MapRGB (m_pImage->format, R, G, B) );

Ive searched in the hole documentation of the SFML but i dont found something. Maybe I'm blind, so I hop you can open my eyes  :?

klusark

  • Newbie
  • *
  • Posts: 45
    • View Profile
Unvisible Sprite background?
« Reply #1 on: January 07, 2009, 10:51:07 pm »
You could use an image format like PNG that supports transparencies.

SpartanJ

  • Newbie
  • *
  • Posts: 6
    • View Profile

raXor

  • Newbie
  • *
  • Posts: 7
    • View Profile
Unvisible Sprite background?
« Reply #3 on: January 07, 2009, 11:02:44 pm »
Thanks, I will try it

raXor

  • Newbie
  • *
  • Posts: 7
    • View Profile
Unvisible Sprite background?
« Reply #4 on: January 08, 2009, 04:17:15 pm »
Yeah, it works. Thanks  :mrgreen:

 

anything