I try to get the color #ff00ff transparent without much luck.
CODE
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glColor4f(1, 1, 1, 0.8f);
aSprite = 0;
glBindTexture(GL_TEXTURE_2D, sprite[aSprite]);
glBegin(GL_POLYGON);
glTexCoord2f(0.0f, 0.0f); glVertex3f(float(sxPos + sprx), float(syPos + spry), 0.0f);
glTexCoord2f(1.0f, 0.0f); glVertex3f(float(sxPos + 1 + sprx), float(syPos + spry), 0.0f);
glTexCoord2f(1.0f, 1.0f); glVertex3f(float(sxPos + 1 + sprx), float(syPos + 1 + spry), 0.0f);
glTexCoord2f(0.0f, 1.0f); glVertex3f(float(sxPos + sprx), float(syPos + 1 + spry), 0.0f);
glEnd();
glDisable(GL_BLEND);
This makes the entire sprite transparent and thats really not what I want to do.
This is how it looks right now

This is how I want it to look

Best regards!