518519520521522523524525526527528
imb.glNormal3f(-cos(angle), -sin(angle), 0.0f); imb.glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5f); } gear.update(imb.getBuffer()); return gear; } private class Gear {