what i want is to fill a shape with a raidial gradient and for the tranparenci i want to use a different radial fill.
E.g. Like this: (color fill, alpha fill, blended end result)
This is my current code that works ok'ish ( but i suspect it to bleech )
Code:
//draw alpha fill
glBlendFunc(GL_DST_COLOR, GL_ZERO);
glColorMask(TRUE,TRUE,TRUE, TRUE);
fStyle.DrawAlphaFill(fBoundBoxRadius,fboundboxminpoint, fboundboxmaxpoint);
//draw fill
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_DST_ALPHA);
glColorMask(TRUE,TRUE, TRUE, FALSE); //but not alpha
fStyle.DrawFill(fBoundBoxRadius,fboundboxminpoint,fboundboxmaxpoint);
Bookmarks