@ SuppressWarnings ( "unused" ) public void debugRender ( GL2 gl ) { if ( ! DEBUG || ( startcamera == null ) ) { return ; } gl . glLineWidth ( 3f ) ; gl . glColor4f ( 1.f , 0.f , 0.f , .66f ) ; gl . glBegin ( GL . GL_LINES ) ; gl . glVertex3f ( 0.f , 0.f , 0.f ) ; double rot = startangle - startcamera . getRotationZ ( ) ; gl . glVertex3f ( ( float ) FastMath . cos ( rot ) * 4.f , ( float ) - FastMath . sin ( rot ) * 4.f , 0.f ) ; gl . glVertex3f ( ( float ) FastMath . cos ( rot ) * 1.f , ( float ) - FastMath . sin ( rot ) * 1.f , 0.f ) ; gl . glVertex3f ( ( float ) FastMath . cos ( rot ) * 1.f , ( float ) - FastMath . sin ( rot ) * 1.f , 1.f ) ; gl . glEnd ( ) ; }
Render a debugging hint for the arcball tool .