8889909192939495969798
glUseProgram(shaderProgram); glCallList(bunny); glUseProgram(0); cam.processMouse(1, 80, -80); cam.processKeyboard(16, 1, 1, 1); if (Mouse.isButtonDown(0)) { Mouse.setGrabbed(true); } else if (Mouse.isButtonDown(1)) {
glUseProgram(shaderProgram); glCallList(bunny); glUseProgram(0); if (Mouse.isGrabbed()) { cam.processMouse(1, 80, -80); } cam.processKeyboard(16, 1, 1, 1); if (Mouse.isButtonDown(0)) { Mouse.setGrabbed(true);