File: Window.java

package info (click to toggle)
f3d 3.2.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 27,668 kB
  • sloc: cpp: 99,109; python: 811; sh: 342; xml: 238; java: 101; javascript: 95; makefile: 25
file content (24 lines) | stat: -rw-r--r-- 574 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package app.f3d.F3D;

public class Window {

    public Window(long nativeAddress) {
        mNativeAddress = nativeAddress;
        mCamera = new Camera(nativeAddress);
    }

    public Camera getCamera() { return mCamera; }

    public native void render();
    public native void setSize(int width, int height);

    public native int getWidth();
    public native int getHeight();

    public native double[] getDisplayFromWorld(double[] pt);
    public native double[] getWorldFromDisplay(double[] pt);

    private long mNativeAddress;

    private Camera mCamera;
}