Skip to main content
gamedev.net
🔒 Locked

Example code for transparencies...

Started by Tszafran 0 replies 550+ views
Original Post
Tszafran
Tszafran
Hi, I am working on a 2D game engine and Have my blitting functions work good along with my alpha blending but my transparents dont work. I believe I am supposed to use glAlphaFunc but I would like to see a example of something. I would like to get a certain color to not be drawn, so like Purple (R 255, G 255, B 255) would be transparent in my mouse cursor bitmap file, so when its loaded and blitted everything except that color is drawn. Thanks for your time.
MSN Messenger: Thomas_Szafran@hotmail.com
Null and Void
Null and Void
This question is asked a lot, you can probably find an answer just by doing a search of the OpenGL forum (see the upper right corner of the GameDev page for the search feature).

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.