glViewport(0, 0, w, h); gluOrtho2D(10, 100, 10, 100);
我没有得到任何输出,你能帮帮我吗?
如果我把它设置为
gluOrtho2D(-50, 50,-50, 50);
然后在窗口中心创建对象.
opengl
opengl ×1