HomeGLSurfaceView.java 611 B

12345678910111213141516171819
  1. package de.tudarmstadt.informatik.hostage.ui2.fragment.opengl;
  2. import android.content.Context;
  3. import android.opengl.GLSurfaceView;
  4. import android.util.AttributeSet;
  5. import android.util.Log;
  6. public class HomeGLSurfaceView extends GLSurfaceView {
  7. public HomeGLSurfaceView(Context context) { // won't be called
  8. super(context);
  9. Log.e("gl", "called wrong constructor (w/o attributes)");
  10. }
  11. public HomeGLSurfaceView(Context context, AttributeSet attrs) { // will be called
  12. super(context, attrs);
  13. setEGLContextClientVersion(2); // OpenGL ES 2.0
  14. setRenderer(new ThreatIndicatorGLRenderer());
  15. }
  16. }