华南理工大学计算机图形学实验
一、
1.Pleasedownloadandinstalltheglutlibrary.
2.WriteacompleteprogramusingthefollowingcodestodrawaSierpinskigasket.
voidmyinit()
{
//attributes
glClearColor(1.0,1.0,1.0,1.0);
glColor3f(1.0,0.0,0.0);
//setupviewing
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluOrtho2D(0.
下载地址
用户评论
还没用,先下载