《精》交互式计算机图形学_实 例 程 序.docVIP

  • 7
  • 0
  • 约6.76万字
  • 约 59页
  • 2017-01-16 发布于北京
  • 举报

《精》交互式计算机图形学_实 例 程 序.doc

A.1 Sierpinski镂垫程序 /* two-dimensional Sierpinski gasket */ /* generated using randomly selected vertices */ /* and bisection */ #include GL/glut.h /*you may have to change the include toglut.h or elsewhere depending on where it is stored on your system */ /* glut.h usually has included for gl.h and glu.h */ void myinit(void) { /* attributes */ glClearColor(1.0, 1.0, 1.0, 1.0); /* white background */ glColor3f(1.0, 0.0, 0.0); /* draw in red */ /* set up viewing */ /* 50.0 × 50.0 camera coordinate window with origin lower left */

文档评论(0)

1亿VIP精品文档

相关文档