Sign in to follow this  

SDL_BlendMode when sharing textures?

Recommended Posts

doyleman77    367

I'm using a map to store all of my textures, from which entity's refer upon. There may be an instance where I want one entity whom shares a texture with possibly many other entities to be transparent or blended, but not the others.


Right off the bat, I thought about having flag or check per entity on their alpha or blend mode, and modifying the texture just before drawing, and then resetting the texture's blend & alpha (this way, all entities will eventually be able to modify the texture as they need, and it'd default when done).


I am not sure if that'd work, though I *think* so. My question, though, is: is there a more optimal way of handling blending and alpha on a texture that is shared?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this