[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/tool RotationTool.java, 1.25, 1.26
Status: Pre-Alpha
Brought to you by:
henryml
|
From: Michael L. <he...@us...> - 2007-02-14 14:27:32
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv17746/src/net/sourceforge/bprocessor/gl/tool Modified Files: RotationTool.java Log Message: Refactoring draw code Ð removed usage of gld Index: RotationTool.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/RotationTool.java,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** RotationTool.java 2 Jan 2007 18:29:50 -0000 1.25 --- RotationTool.java 14 Feb 2007 14:27:24 -0000 1.26 *************** *** 33,37 **** import javax.media.opengl.GL; - import javax.media.opengl.GLAutoDrawable; import javax.media.opengl.glu.GLU; --- 33,36 ---- *************** *** 341,345 **** * @inheritDoc */ ! public void draw(GLAutoDrawable gld) { double angle = Math.toDegrees(totalAngle); Camera cam = Project.getInstance().getCurrentCamera(); --- 340,344 ---- * @inheritDoc */ ! public void draw(GL gl) { double angle = Math.toDegrees(totalAngle); Camera cam = Project.getInstance().getCurrentCamera(); *************** *** 347,351 **** double dist = camorig.distance(plane.origin()); factor = dist / 20; - GL gl = gld.getGL(); GLU glu = new GLU(); // translate --- 346,349 ---- |