// the count of stem's joint
void DrawStem( int increase_count )
{
GLUquadricObj *cylquad = gluNewQuadric();
int i;
glPushMatrix();
glRotatef(-90, 1, 0, 0);
gluCylinder(cylquad, 0.1, 0.07, increase_count, 10, 2 );
// etc ...
glPopMatrix();
}
// the count of twig
void Drawtwig()
{
I don't know how to draw this part!
}
// the count of leaf
void Drawleaf()
{
glBegin(GL_TRIANGLES);
glNormal3f(-0.1, 0, 0.25);
glVertex3f(0, 0, 0);
glVertex3f(0.25, 0.25, 0.1);
glVertex3f(0, 0.5, 0);
glNormal3f(0.1, 0, 0.25);
glVertex3f(0, 0, 0);
glVertex3f(0, 0.5, 0);
glVertex3f(-0.25, 0.25, 0.1);
glEnd();
}