21 package com.arm.malideveloper.openglessdk.antialias;
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;
31 import com.arm.malideveloper.openglessdk.*;
35 public AntiAliasView(Context context)
40 @Override
protected void setRendererCallback()
42 setRenderer(
new Renderer());
45 @Override
protected void destroyContextCallback()
73 public static native
void step();
74 public static native
void uninit();
76 @Override
protected void onCreate(Bundle savedInstanceState)
78 super.onCreate(savedInstanceState);
80 this.requestWindowFeature(Window.FEATURE_NO_TITLE);
81 getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
82 WindowManager.LayoutParams.FLAG_FULLSCREEN);
84 mView =
new AntiAliasView(getApplication());
85 setContentView(mView);
108 System.loadLibrary(
"Native");
void onSurfaceChanged(GL10 gl, int width, int height)
static native void uninit()
void onDrawFrame(GL10 gl)
GLint GLsizei GLsizei height
void onSurfaceCreated(GL10 gl, EGLConfig config)
void onCreate(Bundle savedInstanceState)
static native void init(int width, int height)
static native void step()