package com.firemint.realracing; import android.opengl.GLSurfaceView; import javax.microedition.khronos.egl.EGLConfig; import javax.microedition.khronos.opengles.GL10; /* loaded from: classes2.dex */ class GLRenderer implements GLSurfaceView.Renderer { @Override // android.opengl.GLSurfaceView.Renderer public void onSurfaceCreated(GL10 gl10, EGLConfig eGLConfig) { MainActivity.instance.onViewCreatedJNI(); } @Override // android.opengl.GLSurfaceView.Renderer public void onSurfaceChanged(GL10 gl10, int i, int i2) { MainActivity mainActivity = MainActivity.instance; mainActivity.OnViewChanged(i, i2, mainActivity.getScreenOrientation(), MainActivity.instance.getScreenRotation()); } @Override // android.opengl.GLSurfaceView.Renderer public void onDrawFrame(GL10 gl10) { if (MainActivity.getGameState() == 5) { return; } MainActivity mainActivity = MainActivity.instance; mainActivity.onViewRenderJNI(mainActivity.getScreenOrientation(), MainActivity.instance.getScreenRotation()); } }