diff options
author | Frank v/d Haterd <f.h.a.v.d.haterd@student.tue.nl> | 2014-01-09 15:32:14 +0100 |
---|---|---|
committer | Frank v/d Haterd <f.h.a.v.d.haterd@student.tue.nl> | 2014-01-09 15:32:14 +0100 |
commit | fa01d5cd8bd5df401b061831909459a145c5f33f (patch) | |
tree | c6ab6ab871bf9a834699e2c6de235ffb8c0ef9f2 | |
parent | 6a88bc222d2805257093fc25ee8a46203ac0218a (diff) | |
download | 2iv60-robots-fa01d5cd8bd5df401b061831909459a145c5f33f.tar.gz |
Some comments
-rw-r--r-- | src/Robot.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Robot.java b/src/Robot.java index 778b2e5..0e496e1 100644 --- a/src/Robot.java +++ b/src/Robot.java @@ -452,13 +452,16 @@ class Robot extends BetterBase { // Set color and draw head setColor(asStickFigure ? boneColor : Colors.PALE_TURQOISE); - + + // Create glu quadric object GLUquadric sphere = glu.gluNewQuadric(); + // Set glu drawing settings glu.gluQuadricDrawStyle(sphere, glu.GLU_FILL); glu.gluQuadricTexture(sphere, true); glu.gluQuadricNormals(sphere, glu.GLU_SMOOTH); + // Draw the glu sphere glu.gluSphere(sphere, headRadius, 32, 32); // glut.glutSolidSphere(headRadius, 32, 32); |