void display(void)
{
//int i;
glClear(GL_COLOR_BUFFER_BIT);
glColor3f(1.0,1.0,1.0);
/*glLineStipple(1,0x0101);
drawOneLine(50.0,125.0,150.0,125.0);
glLineWidth(5.0);
glLineStipple(1,0x0000);
drawOneLine2(50.0,190.0,150.0,190.0);*/
//glDisable(GL_LINE_STIPPLE);
glLoadIdentity();
gluLookAt(x,y,5.0,0.0,0.0,0.0,0.0,1.0,0.0);
glScalef(1.0,1.0,1.0);
//glutWireCube(1.0);
glutWireTeapot(1.0);
glFlush();
}
void reshape(int w,int h)
{
glViewport(0,0,(GLsizei)w,(GLsizei)h);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
//gluOrtho2D(0.0,(GLdouble)w,0.0,(GLdouble)h);
glFrustum(-1.0,1.0,-1.0,1.0,1.5,20.0);
glMatrixMode(GL_MODELVIEW);
}