Here’s my code:
public void drawStraightPipe(GLDrawable glDrawable, int x, int y)
{
final GL gl=glDrawable.getGL();
final GLU glu=glDrawable.getGLU();
gl.glLoadIdentity();
gl.glTranslatef((float)(x*10.0f), (float)(y*10.0f), 0.0f);
glu.gluCylinder(new GLUquadric(), 5.0, 5.0, 10.0, 10, 1);
}
It draws absolutely nothing. Am I missing something?
Thanks!
Edit: Braces (but they’re still messed up)