package de.tudarmstadt.informatik.hostage.ui2.fragment.opengl; import android.content.Context; import android.opengl.GLSurfaceView; import android.util.AttributeSet; import android.util.Log; public class HomeGLSurfaceView extends GLSurfaceView { public HomeGLSurfaceView(Context context) { // won't be called super(context); Log.e("gl", "called wrong constructor (w/o attributes)"); } public HomeGLSurfaceView(Context context, AttributeSet attrs) { // will be called super(context, attrs); setEGLContextClientVersion(2); // OpenGL ES 2.0 setRenderer(new ThreatIndicatorGLRenderer()); } }