//红宝书---Alpha分量混合P158#include<GL\freeglut.h>static int leftFirst = GL_TRUE;void init(void){ glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA);//设置以【源像素的Alpha*目标像素+(1-源像素的Alpha)*源像素】的混合方式 glShadeModel(GL_FLAT); glClearColor(0.0,0.0,0.0,0.0);}void drawLeftTriangle(void){ glBeg Read More
posted @ 2012-05-29 22:28 Andy Sun Views(514) Comments(0) Diggs(0)