CS116b/CS216
Chris Pollett
Jan 27, 2014
... matrixStack.initialize(inv(E)); matrixStack.push(O); matrixStack.push(O'); //draw body draw(matrixStack.top(), cube); // get rid of scale matrix O' matrixStack.pop(); matrixStack.push(A); matrixStack.push(B); matrixStack.push(B'); //draw upper arm draw(matrixStack.top(), sphere); // get rid of scale matrix B' matrixStack.pop(); matrixStack.push(C); matrixStack.push(D); matrixStack.push(D'); //draw lower arm draw(matrixStack.top(), sphere); // get rid of scale matrix D' matrixStack.pop(); matrixStack.pop(); // bye-bye D matrixStack.pop(); //bye-bye C matrixStack.pop(); //bye-bye B matrixStack.pop();//bye-bye A ...//draw left arm, etc.