Android Open Source - androidOpenGLShapes My G L Surface View






From Project

Back to project page androidOpenGLShapes.

License

The source code is released under:

MIT License

If you think the Android project androidOpenGLShapes listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.example.opengl;
import android.content.Context;
import android.opengl.GLSurfaceView;
/* w  w w . ja v  a2  s .  c  o  m*/

public class MyGLSurfaceView extends GLSurfaceView {
  private final MyGLRenderer mRenderer = new MyGLRenderer();
    public MyGLSurfaceView(Context context){
        super(context);
        setEGLContextClientVersion(2);
        //setRenderMode(GLSurfaceView.RENDERMODE_WHEN_DIRTY);
        // Set the Renderer for drawing on the GLSurfaceView
        setRenderer(mRenderer);
    }
}




Java Source Code List

com.example.opengl.Circle.java
com.example.opengl.MyGLRenderer.java
com.example.opengl.MyGLSurfaceView.java
com.example.opengl.OpenGLShapes.java
com.example.opengl.Square.java
com.example.opengl.Triangle.java