Skip to content

Commit

Permalink
Extract dependency to AWT into own implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Läubrich committed Jun 23, 2021
1 parent 9cc9b2d commit bb82d70
Show file tree
Hide file tree
Showing 132 changed files with 948 additions and 877 deletions.
7 changes: 4 additions & 3 deletions jzy3d-jGL/src/main/java/examples/applets/bezcurve.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@
import java.awt.Graphics;
import java.awt.event.ComponentEvent;
import java.awt.event.ComponentListener;

import jgl.awt.GL;
// must import jgl.GL....
import jgl.GL;
import jgl.GLAUX;
import jgl.awt.GLAUX;

public class bezcurve extends Applet implements ComponentListener {
// must use GL to use jGL.....
// and use GLAUX to use the aux functions.....
// remember to give GL to initialize GLAUX
GL myGL = new GL();
GL myGL = new GL();
GLAUX myAUX = new GLAUX(myGL);

private static final float ctrlpoints[][] =
Expand Down
7 changes: 4 additions & 3 deletions jzy3d-jGL/src/main/java/examples/applets/bezmesh.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
import java.awt.Graphics;
import java.awt.event.ComponentEvent;
import java.awt.event.ComponentListener;
// must import jgl.GL....
import jgl.GL;
import jgl.GLAUX;


import jgl.awt.GLAUX;
import jgl.awt.GL;

public class bezmesh extends Applet implements ComponentListener {
// must use GL to use jGL.....
Expand Down
7 changes: 4 additions & 3 deletions jzy3d-jGL/src/main/java/examples/applets/bezsurf.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
import java.awt.Graphics;
import java.awt.event.ComponentEvent;
import java.awt.event.ComponentListener;
// must import jgl.GL....
import jgl.GL;
import jgl.GLAUX;


import jgl.awt.GLAUX;
import jgl.awt.GL;

public class bezsurf extends Applet implements ComponentListener {
// must use GL to use jGL.....
Expand Down
9 changes: 5 additions & 4 deletions jzy3d-jGL/src/main/java/examples/applets/checker.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
import java.awt.Graphics;
import java.awt.event.ComponentEvent;
import java.awt.event.ComponentListener;
// must import jgl.GL....
import jgl.GL;
import jgl.GLAUX;
import jgl.GLU;


import jgl.awt.GLAUX;
import jgl.awt.GLU;
import jgl.awt.GL;

public class checker extends Applet implements ComponentListener {
// must use GL to use jGL.....
Expand Down
9 changes: 5 additions & 4 deletions jzy3d-jGL/src/main/java/examples/applets/clip.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
import java.awt.Graphics;
import java.awt.event.ComponentEvent;
import java.awt.event.ComponentListener;
// must import jgl.GL....
import jgl.GL;
import jgl.GLAUX;
import jgl.GLU;


import jgl.awt.GLAUX;
import jgl.awt.GLU;
import jgl.awt.GL;

public class clip extends Applet implements ComponentListener {
// must use GL to use jGL.....
Expand Down
7 changes: 4 additions & 3 deletions jzy3d-jGL/src/main/java/examples/applets/colormat.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
import java.awt.event.InputEvent;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
// must import jgl.GL....
import jgl.GL;
import jgl.GLAUX;


import jgl.awt.GLAUX;
import jgl.awt.GL;

public class colormat extends Applet implements ComponentListener, MouseListener {
// must use GL to use jGL.....
Expand Down
7 changes: 4 additions & 3 deletions jzy3d-jGL/src/main/java/examples/applets/cube.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
import java.awt.Graphics;
import java.awt.event.ComponentEvent;
import java.awt.event.ComponentListener;
// must import jgl.GL....
import jgl.GL;
import jgl.GLAUX;


import jgl.awt.GLAUX;
import jgl.awt.GL;

public class cube extends Applet implements ComponentListener {
// must use GL to use jGL.....
Expand Down
7 changes: 4 additions & 3 deletions jzy3d-jGL/src/main/java/examples/applets/doublebuffer.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
import java.awt.event.InputEvent;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
// must import jgl.GL....
import jgl.GL;
import jgl.GLAUX;


import jgl.awt.GLAUX;
import jgl.awt.GL;

// "double" is a reserved word in Java
public class doublebuffer extends Applet implements ComponentListener, MouseListener, Runnable {
Expand Down
7 changes: 4 additions & 3 deletions jzy3d-jGL/src/main/java/examples/applets/drawf.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
import java.awt.Graphics;
import java.awt.event.ComponentEvent;
import java.awt.event.ComponentListener;
// must import jgl.GL....
import jgl.GL;
import jgl.GLAUX;


import jgl.awt.GLAUX;
import jgl.awt.GL;

public class drawf extends Applet implements ComponentListener {
// must use GL to use jGL.....
Expand Down
2 changes: 1 addition & 1 deletion jzy3d-jGL/src/main/java/examples/applets/glut/alpha.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import jgl.GL;
import jgl.GLApplet;
import jgl.awt.GLApplet;

public class alpha extends GLApplet {

Expand Down
2 changes: 1 addition & 1 deletion jzy3d-jGL/src/main/java/examples/applets/glut/alpha3D.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import jgl.GL;
import jgl.GLApplet;
import jgl.awt.GLApplet;

public class alpha3D extends GLApplet {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import jgl.GL;
import jgl.GLApplet;
import jgl.awt.GLApplet;

public class bezcurve extends GLApplet {

Expand Down
2 changes: 1 addition & 1 deletion jzy3d-jGL/src/main/java/examples/applets/glut/bezmesh.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import jgl.GL;
import jgl.GLApplet;
import jgl.awt.GLApplet;

public class bezmesh extends GLApplet {

Expand Down
2 changes: 1 addition & 1 deletion jzy3d-jGL/src/main/java/examples/applets/glut/bezsurf.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import jgl.GL;
import jgl.GLApplet;
import jgl.awt.GLApplet;

public class bezsurf extends GLApplet {

Expand Down
2 changes: 1 addition & 1 deletion jzy3d-jGL/src/main/java/examples/applets/glut/checker.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import jgl.GL;
import jgl.GLApplet;
import jgl.awt.GLApplet;

public class checker extends GLApplet {

Expand Down
2 changes: 1 addition & 1 deletion jzy3d-jGL/src/main/java/examples/applets/glut/clip.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import jgl.GL;
import jgl.GLApplet;
import jgl.awt.GLApplet;

public class clip extends GLApplet {

Expand Down
4 changes: 2 additions & 2 deletions jzy3d-jGL/src/main/java/examples/applets/glut/colormat.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
*/

import jgl.GL;
import jgl.GLApplet;
import jgl.GLUT;
import jgl.awt.GLApplet;
import jgl.awt.GLUT;

public class colormat extends GLApplet {

Expand Down
2 changes: 1 addition & 1 deletion jzy3d-jGL/src/main/java/examples/applets/glut/cube.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import jgl.GL;
import jgl.GLApplet;
import jgl.awt.GLApplet;

public class cube extends GLApplet {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
*/

import jgl.GL;
import jgl.GLApplet;
import jgl.GLUT;
import jgl.awt.GLApplet;
import jgl.awt.GLUT;

// "double" is a reserved word in Java
public class doublebuffer extends GLApplet {
Expand Down
5 changes: 3 additions & 2 deletions jzy3d-jGL/src/main/java/examples/applets/glut/drawf.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
import java.awt.Graphics;
import java.awt.event.ComponentEvent;
import java.awt.event.ComponentListener;

import jgl.awt.GL;
// must import jgl.GL....
import jgl.GL;
import jgl.GLAUX;
import jgl.awt.GLAUX;

public class drawf extends Applet implements ComponentListener {
// must use GL to use jGL.....
Expand Down
2 changes: 1 addition & 1 deletion jzy3d-jGL/src/main/java/examples/applets/glut/hello.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import jgl.GL;
import jgl.GLApplet;
import jgl.awt.GLApplet;

public class hello extends GLApplet {

Expand Down
2 changes: 1 addition & 1 deletion jzy3d-jGL/src/main/java/examples/applets/glut/light.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import jgl.GL;
import jgl.GLApplet;
import jgl.awt.GLApplet;

public class light extends GLApplet {

Expand Down
2 changes: 1 addition & 1 deletion jzy3d-jGL/src/main/java/examples/applets/glut/lines.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import jgl.GL;
import jgl.GLApplet;
import jgl.awt.GLApplet;

public class lines extends GLApplet {

Expand Down
2 changes: 1 addition & 1 deletion jzy3d-jGL/src/main/java/examples/applets/glut/list.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import jgl.GL;
import jgl.GLApplet;
import jgl.awt.GLApplet;

public class list extends GLApplet {

Expand Down
3 changes: 2 additions & 1 deletion jzy3d-jGL/src/main/java/examples/applets/glut/material.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
*/

import java.util.Date;

import jgl.GL;
import jgl.GLApplet;
import jgl.awt.GLApplet;

public class material extends GLApplet {

Expand Down
2 changes: 1 addition & 1 deletion jzy3d-jGL/src/main/java/examples/applets/glut/mipmap.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import jgl.GL;
import jgl.GLApplet;
import jgl.awt.GLApplet;

public class mipmap extends GLApplet {

Expand Down
2 changes: 1 addition & 1 deletion jzy3d-jGL/src/main/java/examples/applets/glut/model.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import jgl.GL;
import jgl.GLApplet;
import jgl.awt.GLApplet;

public class model extends GLApplet {

Expand Down
4 changes: 2 additions & 2 deletions jzy3d-jGL/src/main/java/examples/applets/glut/movelight.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
*/

import jgl.GL;
import jgl.GLApplet;
import jgl.GLUT;
import jgl.awt.GLApplet;
import jgl.awt.GLUT;

public class movelight extends GLApplet {

Expand Down
4 changes: 2 additions & 2 deletions jzy3d-jGL/src/main/java/examples/applets/glut/pickdepth.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package examples.applets.glut;

import jgl.GL;
import jgl.GLApplet;
import jgl.GLUT;
import jgl.awt.GLApplet;
import jgl.awt.GLUT;

public class pickdepth extends GLApplet {

Expand Down
4 changes: 2 additions & 2 deletions jzy3d-jGL/src/main/java/examples/applets/glut/picksquare.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package examples.applets.glut;

import jgl.GL;
import jgl.GLApplet;
import jgl.GLUT;
import jgl.awt.GLApplet;
import jgl.awt.GLUT;

public class picksquare extends GLApplet {

Expand Down
2 changes: 1 addition & 1 deletion jzy3d-jGL/src/main/java/examples/applets/glut/planet.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import jgl.GL;
import jgl.GLApplet;
import jgl.awt.GLApplet;

public class planet extends GLApplet {

Expand Down
2 changes: 1 addition & 1 deletion jzy3d-jGL/src/main/java/examples/applets/glut/polys.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import jgl.GL;
import jgl.GLApplet;
import jgl.awt.GLApplet;

public class polys extends GLApplet {

Expand Down
4 changes: 2 additions & 2 deletions jzy3d-jGL/src/main/java/examples/applets/glut/quadric.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
*/

import jgl.GL;
import jgl.GLApplet;
import jgl.GLU;
import jgl.awt.GLApplet;
import jgl.awt.GLU;
import jgl.glu.GLUquadricObj;

public class quadric extends GLApplet {
Expand Down
2 changes: 1 addition & 1 deletion jzy3d-jGL/src/main/java/examples/applets/glut/robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import jgl.GL;
import jgl.GLApplet;
import jgl.awt.GLApplet;

public class robot extends GLApplet {

Expand Down
2 changes: 1 addition & 1 deletion jzy3d-jGL/src/main/java/examples/applets/glut/scene.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import jgl.GL;
import jgl.GLApplet;
import jgl.awt.GLApplet;

public class scene extends GLApplet {

Expand Down
2 changes: 1 addition & 1 deletion jzy3d-jGL/src/main/java/examples/applets/glut/select.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package examples.applets.glut;

import jgl.GL;
import jgl.GLApplet;
import jgl.awt.GLApplet;

public class select extends GLApplet {

Expand Down
Loading

0 comments on commit bb82d70

Please sign in to comment.