摘要:
一些用作练习的非常简单的图元。 1 #pragma once 2 #include <gl/glut.h> 3 4 class ScreenPt { 5 private: 6 GLint x, y; 7 8 public: 9 ScreenPt() { 10 x = y = 0; 11 } 12 v 阅读全文
posted @ 2016-06-06 23:45
clairvoyant
阅读(232)
评论(0)
推荐(0)
摘要:
我们在建立初始显示窗口后,需要在其后改变位置与形状。窗口尺寸的改变可能改变其纵横比并引起对象形状的改变。所以GLUT库提供glutReshapeFunc(winReshapeFcn)函数。和其他GLUT函数一起放在程序的主过程中,不过该函数是在窗口尺寸输入后激活。其参数是接受新窗口高度的过程名。还可 阅读全文
posted @ 2016-06-06 13:48
clairvoyant
阅读(745)
评论(0)
推荐(0)

浙公网安备 33010602011771号