Basically, what the example program does is load a bmp-file and remove all the black color (#000000) in it, replacing it with transparent color. What I want to do is to specify another color to be replaced, for example #FFFF00.
Quote: /* Load in the texture */
if ( !LoadGLTextures( ) )
return FALSE;
/* Enable Texture Mapping */
glEnable( GL_TEXTURE_2D );
/* Enable smooth shading */
glShadeModel( GL_SMOOTH );
/* Set the background black */
glClearColor( 0.0f, 0.0f, 0.0f, 0.0f );
/* Depth buffer setup */
glClearDepth( 1.0f );
/* Really Nice Perspective Calculations */
glHint( GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST );
/* Set The Blending Function For Translucency */
glBlendFunc( GL_SRC_ALPHA, GL_ONE );
/* Enable Blending */
glEnable( GL_BLEND );