public void onSurfaceCreated(GL10 $gl, EGLConfig eglConfig) { Log.i(Min3d.TAG, "Renderer.onSurfaceCreated()"); RenderCaps.setRenderCaps($gl); setGl($gl); reset(); _scene.init(); }
public void onSurfaceChanged(GL10 gl, int w, int h) { Log.i(Min3d.TAG, "Renderer.onSurfaceChanged()"); setGl(_gl); _surfaceAspectRatio = (float) w / (float) h; _gl.glViewport(0, 0, w, h); _gl.glMatrixMode(GL10.GL_PROJECTION); _gl.glLoadIdentity(); updateViewFrustrum(); }