diff --git a/app/src/main/java/com/google/ar/core/examples/java/common/framework/RWT/RWTRenderer.java b/app/src/main/java/com/google/ar/core/examples/java/common/framework/RWT/RWTRenderer.java index 3fadba8..24a4558 100644 --- a/app/src/main/java/com/google/ar/core/examples/java/common/framework/RWT/RWTRenderer.java +++ b/app/src/main/java/com/google/ar/core/examples/java/common/framework/RWT/RWTRenderer.java @@ -36,24 +36,28 @@ @Override public void onSurfaceCreated(GL10 gl, EGLConfig config) { - gc3D = new GraphicsContext3D(gl); - ArrayList lights = universe.getLights(); - for (int i = 0; i < lights.size(); i++){ - Light l = lights.get(i); - gc3D.setLight(l,i); - } - viewer.setGraphicsContext3D(gc3D); +// gc3D = new GraphicsContext3D(gl); +// ArrayList lights = camera.getUniverse().getLights(); +// for (int i = 0; i < lights.size(); i++){ +// Light l = lights.get(i); +// gc3D.setLight(l,i); +// } +// viewer.setGraphicsContext3D(gc3D); + + helloArActivity.onSurfaceCreated(gl, config); } @Override public void onSurfaceChanged(GL10 gl, int width, int height) { - if (gc3D == null) { - gc3D = new GraphicsContext3D(gl); - viewer.setGraphicsContext3D(gc3D); - } else { - viewer.setGraphicsContext3D(gc3D.setGL10(gl)); - } - viewer.surfaceChanged(width, height); +// if (gc3D == null) { +// gc3D = new GraphicsContext3D(gl); +// viewer.setGraphicsContext3D(gc3D); +// } else { +// viewer.setGraphicsContext3D(gc3D.setGL10(gl)); +// } +// viewer.surfaceChanged(width, height); + + helloArActivity.onSurfaceChanged(gl, width, height); } @Override