21 package com.arm.malideveloper.openglessdk.etccompressedalpha;
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 ETCCompressedAlphaDemoView(Context context)
39 @Override
protected void setRendererCallback()
41 setRenderer(
new Renderer());
44 @Override
protected void destroyContextCallback()
46 ETCCompressedAlpha.uninit();
53 ETCCompressedAlpha.step();
70 ETCCompressedAlphaDemoView mView;
73 public static native
void step();
74 public static native
void uninit();
76 @Override
protected void onCreate(Bundle icicle)
78 super.onCreate(icicle);
80 this.requestWindowFeature(Window.FEATURE_NO_TITLE);
81 getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
82 WindowManager.LayoutParams.FLAG_FULLSCREEN);
84 mView =
new ETCCompressedAlphaDemoView(getApplication());
85 setContentView(mView);
108 System.loadLibrary(
"Native");
void onCreate(Bundle icicle)
static native void step()
GLint GLsizei GLsizei height
static native void uninit()
void onSurfaceChanged(GL10 gl, int width, int height)
static native void init(int width, int height)
void onSurfaceCreated(GL10 gl, EGLConfig config)
void onDrawFrame(GL10 gl)