Getting smooth, big points in OpenGL
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I started playing around with OpenGL and GLUT. I would like to draw some points, but the problem is that they turn out to be squares, and I would like them to be round dots (filled circles). This is what I do: void onInitialization ( ) { glEnable ( GL_POINT_SMOOTH ); glEnable ( GL_BLEND ); glBlendFunc ( GL_SRC_ALPHA , GL_ONE_MINUS_SRC_ALPHA ); glPointSize ( 6.0 ); } void onDisplay () { glClearColor ( 1.0f , 1.0f , 1.0f , 1.0f ); glClear ( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT ); glBegin ( GL_POINTS ); glColor3f ( 0.95f , 0.207