correction of JoglEventListener2D

This commit is contained in:
Antonin Boyon 2021-03-02 18:36:05 +01:00
parent 9a156f8d11
commit de958c9f15
2 changed files with 7 additions and 3 deletions

View File

@ -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);
}
}

View File

@ -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