correction of JoglEventListener2D
This commit is contained in:
parent
9a156f8d11
commit
de958c9f15
@ -7,6 +7,8 @@ import com.jogamp.opengl.GLEventListener;
|
||||
import com.jogamp.opengl.awt.GLCanvas;
|
||||
import com.jogamp.opengl.util.Animator;
|
||||
|
||||
import lsystem.screen.listener.JoglEventListener2D;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.event.WindowAdapter;
|
||||
import java.awt.event.WindowEvent;
|
||||
@ -105,8 +107,10 @@ public class Jogl implements GLEventListener {
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
Jogl jogl = new Jogl();
|
||||
jogl.initialize(args);
|
||||
//Jogl jogl = new Jogl();
|
||||
//jogl.initialize(args);
|
||||
SwingGLCanvas2D canvas = new SwingGLCanvas2D();
|
||||
JoglEventListener2D a = new JoglEventListener2D(canvas);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -91,7 +91,7 @@ public class JoglEventListener2D implements GLEventListener {
|
||||
|
||||
|
||||
DrawHelper.drawStick(gl, 0.1f, xDefault, yDefault, 0);
|
||||
DrawHelper.drawStick(gl, 0.2f, 1.1f, 1.1f, 90);
|
||||
DrawHelper.drawStick(gl, 0.2f, -0.9f, -0.9f, 90);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user