build a tree in opengl