#include<iostream>
#include "glut.h"
#include"stdlib.h"
void star()
{
int i;
for (i = 0; i <= 200; i++)
{
glPointSize(1 + rand() % 3);
glBegin(GL_POINTS);
glColor3ub(rand() % 255, rand() % 255, rand() % 255);
glVertex2f(100 - rand() % 200, 100 - rand() % 200);//中心点的位置
glEnd();
}
}
void zuoye()
{
glPushMatrix();//bottom
glTranslatef(0,-50 , 0);
glScalef(1, 0.75, 1);
glRotatef(90, 1, 0, 0);
glColor3ub(230, 230, 250);
glutWireSphere(20,20,15);
glPopMatrix();
glPushMatrix();
glTranslatef(0, -20, 0);
glScalef(1, 0.75, 1);
glRotatef(90, 1, 0, 0);
glColor3ub(230, 230, 250);
glutWireSphere(8, 5, 10);
glPopMatrix();
glPushMatrix();
glTranslatef(0, -5, 0);
glScalef(1, 0.75, 1);
glRotatef(90, 1, 0, 0);
glColor3ub(230, 230, 250);
glutWireSphere(8, 5, 10);
glPopMatrix();
glPushMatrix();
glTranslatef(0, 10, 0);
glScalef(1, 0.75, 1);
glRotatef(90, 1, 0, 0);
glColor3ub(230, 230, 250);
glutWireSpher