overlapping partially transparent shapes in openGL
问题 Please check this neat piece of code I found: glEnable(GL_LINE_SMOOTH); glColor4ub(0, 0, 0, 150); mmDrawCircle( ccp(100, 100), 20, 0, 50, NO); glLineWidth(40); ccDrawLine(ccp(100, 100), ccp(100 + 100, 100)); mmDrawCircle( ccp(100+100, 100), 20, 0, 50, NO); where mmDrawCircle and ccDrawLine just draws these shapes [FILLED] somehow... (ccp means a point with the given x, y coordinates respectively). My problem .... Yes, you guessed it, The line overlaps with the circle, and both are translucent