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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - joaojoaojoao

Pages: [1]
1
Thank you  :D
It worked!

2
Hi

(This is my first post on SFML, so please..be gentle  :) )

I have a class that contains:

   sf::Texture   mTexture;
   sf::Sprite     mSprite;


I need to create an image with some part that is invisible.
I've read that there is a method called "createMaskFromColor()"

But this method is only used for sf::Image's.

Since I don't have any image on my class (only a texture and a sprite), how can I set a transparent mask from a sprite?

Thank you!

Pages: [1]