Skip to content

Commit dabbf80

Browse files
committed
implementation of eye() for AR
1 parent ef45677 commit dabbf80

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

mode/libraries/ar/src/processing/ar/ARGraphics.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,14 @@ protected PGL createPGL(PGraphicsOpenGL pGraphicsOpenGL) {
120120
}
121121

122122

123+
@Override
124+
public void eye() {
125+
super.ortho(0, width, -height, 0, -1, +1);
126+
127+
eyeDist = 1;
128+
resetMatrix();
129+
}
130+
123131
@Override
124132
public void beginDraw() {
125133
super.beginDraw();

0 commit comments

Comments
 (0)