- 7
- 0
- 约6.76万字
- 约 59页
- 2017-01-16 发布于北京
- 举报
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)