|
![](static/image/common/ico_lz.png)
楼主 |
发表于 2009-10-16 08:51:38
|
显示全部楼层
我是照例子上的样子写的代码。
int main(int argc, char** argv)
{
GLint buf, sbuf;
glutInit(&argc, argv);
glutInitDisplayMode (GLUT_DOUBLE | GLUT_RGB | GLUT_MULTISAMPLE);
glutInitWindowSize (600, 300);
glutCreateWindow (argv[0]);
glewInit();
glGetIntegerv (GL_SAMPLE_BUFFERS_ARB, &buf);
printf ("number of sample buffers is %d\n", buf);
glGetIntegerv (GL_SAMPLES_ARB, &sbuf);
printf ("number of samples is %d\n", sbuf);
glutMainLoop();
return 0;
}
这样创建的窗口是不支持多重采样的阿? |
|