21 package com.arm.malideveloper.openglessdk.listeglconfigs;
23 import javax.microedition.khronos.egl.EGLConfig;
24 import javax.microedition.khronos.opengles.GL10;
25 import android.content.Context;
26 import android.opengl.GLSurfaceView;
27 import android.os.Bundle;
28 import android.view.Window;
29 import android.view.WindowManager;
30 import com.arm.malideveloper.openglessdk.*;
34 public ListEGLConfigsView(Context context)
39 @Override
protected void setRendererCallback()
41 setRenderer(
new Renderer());
44 @Override
protected void destroyContextCallback()
67 ListEGLConfigsView mView;
70 public static native
void step();
71 public static native
void uninit();
73 @Override
protected void onCreate(Bundle savedInstanceState)
75 super.onCreate(savedInstanceState);
77 this.requestWindowFeature(Window.FEATURE_NO_TITLE);
78 getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
79 WindowManager.LayoutParams.FLAG_FULLSCREEN);
81 mView =
new ListEGLConfigsView(getApplication());
82 setContentView(mView);
105 System.loadLibrary(
"Native");
void onSurfaceChanged(GL10 gl, int width, int height)
void onDrawFrame(GL10 gl)
GLint GLsizei GLsizei height
static native void init(int width, int height)
void onCreate(Bundle savedInstanceState)
static native void step()
void onSurfaceCreated(GL10 gl, EGLConfig config)
static native void uninit()