Original Post
I'm in the process of making a 2D game engine in openGL and I ran into a little snag. I can't seem to figure out how to pick a color key so a color in the loaded texture will be completely transparent. I have already tried a number of things and I can't seem to get it working properly. I'm using SDL to load the image files. I'm also using PNG files and I realize that they have an alpha layer but I would really like to get the color keying working for a background color if that is possible. Thanks.