// Path: core/src/main/java/org/flightclub/compat/AwtGraphics.java
// public class AwtGraphics implements Graphics {
// 
//     private final java.awt.Graphics g;
// 
//     public AwtGraphics(java.awt.Graphics g) {
//         this.g = g;
//     }
// 
//     @Override
//     public void setColor(Color color) {
//         g.setColor(color.getColor());
//     }
// 
//     @Override
//     public void drawLine(int x1, int y1, int x2, int y2) {
//         g.drawLine(x1, y1, x2, y2);
//     }
// 
//     @Override
//     public void setFont(Font font) {
//         g.setFont(font.getFont());
//     }
// 
//     @Override
//     public void drawString(String str, int x, int y) {
//         g.drawString(str, x, y);
//     }
// 
//     @Override
//     public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints) {
//         g.fillPolygon(xPoints, yPoints, nPoints);
//     }
// 
//     @Override
//     public void fillCircle(int x, int y, int diameter) {
//         g.fillOval(x, y, diameter, diameter);
//     }
// }


import org.flightclub.compat.AwtGraphics;
import java.awt.Canvas;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionAdapter;

            if (mouseTracker.getDeltaY() > 20)
                dz = delta / 4;

            if (mouseTracker.getDeltaY() < -20)
                dz = -delta / 4;

            app.cameraMan.rotateEyeAboutFocus(-dtheta);
            app.cameraMan.translateZ(-dz);
        }

        repaint();
    }

    @Override
    public void paint(Graphics g) {
        if (imgBuffer == null) return;

        updateImgBuffer(graphicsBuffer);
        g.drawImage(imgBuffer, 0, 0, this);
    }

    @Override
    public void update(Graphics g) {
        paint(g);
    }

    public void updateImgBuffer(Graphics g) {
        g.setColor(backColor);
        g.fillRect(0, 0, getWidth(), getHeight());


// Path: core/src/main/java/org/flightclub/compat/AwtGraphics.java
// public class AwtGraphics implements Graphics {
// 
//     private final java.awt.Graphics g;
// 
//     public AwtGraphics(java.awt.Graphics g) {
//         this.g = g;
//     }
// 
//     @Override
//     public void setColor(Color color) {
//         g.setColor(color.getColor());
//     }
// 
//     @Override
//     public void drawLine(int x1, int y1, int x2, int y2) {
//         g.drawLine(x1, y1, x2, y2);
//     }
// 
//     @Override
//     public void setFont(Font font) {
//         g.setFont(font.getFont());
//     }
// 
//     @Override
//     public void drawString(String str, int x, int y) {
//         g.drawString(str, x, y);
//     }
// 
//     @Override
//     public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints) {
//         g.fillPolygon(xPoints, yPoints, nPoints);
//     }
// 
//     @Override
//     public void fillCircle(int x, int y, int diameter) {
//         g.fillOval(x, y, diameter, diameter);
//     }
// }


// Path: core/src/main/java/org/flightclub/ModelCanvas.java
import org.flightclub.compat.AwtGraphics;
import java.awt.Canvas;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionAdapter;

            if (mouseTracker.getDeltaY() > 20)
                dz = delta / 4;

            if (mouseTracker.getDeltaY() < -20)
                dz = -delta / 4;

            app.cameraMan.rotateEyeAboutFocus(-dtheta);
            app.cameraMan.translateZ(-dz);
        }

        repaint();
    }

    @Override
    public void paint(Graphics g) {
        if (imgBuffer == null) return;

        updateImgBuffer(graphicsBuffer);
        g.drawImage(imgBuffer, 0, 0, this);
    }

    @Override
    public void update(Graphics g) {
        paint(g);
    }

    public void updateImgBuffer(Graphics g) {
        g.setColor(backColor);
        g.fillRect(0, 0, getWidth(), getHeight());


        app.draw(new AwtGraphics(g), getWidth(), getHeight());
