SlickCallable callable = new SlickCallable() { public performGLOperations() throws SlickException { GL.glTranslate(0,0,1); glBegin(GL.GL_POLYGONS); glVertex(..); ... glEnd(); } } callable.call();
Alternatively you can use the static methods directly SlickCallable.enterSafeBlock(); GL.glTranslate(0,0,1); glBegin(GL.GL_POLYGONS); glVertex(..); ... glEnd(); SlickCallable.leaveSafeBlock();
@author kevin
|
|