初音拓海のブログ
Amebaでブログを始めよう!

为什么球画出来是个圆 - =

RT

glutSolidSphere(0.008, 20, 20);

it will become a 2d graphic when r is too small?

Blend on opengl

always use the following codes


glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_DST_COLOR);
glDepthMask(GL_FALSE);
frmConfig.Data.DrawAllObject(TDrawMode(DrawMode));
glDepthMask(GL_TRUE);



BE CARE:DON'T CLOSE DEEPBUFFER.

Another Blog

RT