diff options
Diffstat (limited to 'src/Robot.java')
-rw-r--r-- | src/Robot.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Robot.java b/src/Robot.java index 612ecec..ad1f2f3 100644 --- a/src/Robot.java +++ b/src/Robot.java @@ -121,14 +121,14 @@ class Robot extends BetterBase { race.getTorsoTexture().bind(gl); } drawTorso(); - + // Rotate the head so it looks forward (for texturing) gl.glRotatef(180, 0, 0, 1); if (race.enableTextures) { race.getHeadTexture().bind(gl); } drawHead(); - + // Rotate back so the other robot parts are facing the right direction gl.glRotatef(-180, 0, 0, 1); @@ -146,7 +146,7 @@ class Robot extends BetterBase { // draw left and right arms drawArm(false, walkAnim.getArmAngleLeft()); drawArm(true, walkAnim.getArmAngleRight()); - + //<editor-fold> // The following function call exist to make a point clear. Adding // comments for the sake of having comments is silly, pointless and an @@ -208,7 +208,7 @@ class Robot extends BetterBase { gl.glScalef(x, y, z); // Depending on if it needs to be textured, use our own method - // or the glut solid cube. + // or the glut solid cube. if (isTextured && race.enableTextures) { drawCube(); } else { @@ -478,18 +478,18 @@ 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, 16, 16); - + // glut.glutSolidSphere(headRadius, 32, 32); // Pop so we are at the origin again |