Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // when drawctficon is called, GL_BLEND is disabled if flag is in base
- // & enabled if flag isn't
- if(flaginfos[i].state == CTFF_INBASE) glDisable(GL_BLEND); else glEnable(GL_BLEND);
- drawctficon(i*120+VIRTW/4.0f*3.0f, 1650, 120, i, 0, 1/4.0f);
- // original turn_on_transparency :
- // (look : GL_BLEND is forced to enable)
- inline void turn_on_transparency()
- {
- glEnable(GL_BLEND);
- glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
- glColor4ub(255, 255, 255, 255);
- }
- // fixed version ?
- // doesn't force gl blend state, already set by drawctficon
- inline void turn_on_transparency()
- {
- glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
- glColor4ub(255, 255, 255, 100);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement