This is an example of how to use the glInit, glBox, glSetAngleX, glAddToAngleY, glBeginRender, glSet, glCallObject, glObjectAction, and glFinishRender functions.
int translateX, translateXStep,
translateY, translateYStep,
translateZ, translateZStep;
task main()
{
translateX = 0;
translateXStep = 1;
translateY = 0;
translateYStep = 1;
translateZ = 0;
translateZStep = 2;
while (true)
{
translateX += translateXStep;
if (translateX >= 10)
translateXStep = -1;
else if (translateX <= -10)
translateXStep = 1;
translateZ += translateZStep;
if (translateZ >= 10)
translateZStep = -2;
else if (translateZ <= -10)
translateZStep = 2;
translateY += translateYStep;
if (translateY >= 10)
translateYStep = -1;
else if (translateY <= -10)
translateYStep = 1;
}
}