Skip to content

Instantly share code, notes, and snippets.

@thauansrx
Created November 8, 2019 00:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thauansrx/dd6ef4c9e0c15ab3cd3b0c384f16d5f6 to your computer and use it in GitHub Desktop.
Save thauansrx/dd6ef4c9e0c15ab3cd3b0c384f16d5f6 to your computer and use it in GitHub Desktop.
public void vida() {
gl.glPushMatrix();
gl.glColor3f(1, 0, 0);
gl.glTranslatef(2.5f, 0.0f, 0.0f);
glut.glutSolidSphere(4, 10, 10);
gl.glPopMatrix();
gl.glPushMatrix();
gl.glTranslatef(-2.5f, 0.0f, 0.0f);
glut.glutSolidSphere(4, 10, 10);
gl.glPopMatrix();
gl.glPushMatrix();
gl.glRotated(90, 1, 0, 0);
gl.glTranslatef(0.0f, -4.0f, 0.0f);
glut.glutSolidCone(7, 8, 10, 10);
gl.glPopMatrix();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment