21 package com.arm.malideveloper.openglessdk.highqualitytextjava;
25 import javax.microedition.khronos.egl.EGLConfig;
26 import javax.microedition.khronos.opengles.GL10;
28 import android.opengl.GLES20;
29 import android.opengl.GLSurfaceView;
50 float aPrevX,
float aPrevY) {
60 android.util.Log.i(
"INFO",
"Extensions: " + GLES20.glGetString(GLES20.GL_EXTENSIONS));
63 GLES20.glClearColor(0.5f, 0.5f, 0.5f, 1.0f);
83 theTextObj.setText(
"A high text quality!");
84 theTextObj.setPosition(0.0f, 0.0f, -1.0f);
92 GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);
106 int errorCode = GLES20.GL_NO_ERROR;
108 errorCode = GLES20.glGetError();
109 if (errorCode != GLES20.GL_NO_ERROR)
110 android.util.Log.i(
"ERROR",
"GL error: " + aDesc +
" errorCode:" + errorCode);
111 }
while (errorCode != GLES20.GL_NO_ERROR);
HighQualityTextRenderer()
void touchMove(float aX, float aY, float aPrevX, float aPrevY)
GLint GLsizei GLsizei height
static void checkGLError(final String aDesc)
void touchUp(float aX, float aY)
void onSurfaceChanged(GL10 unused, int width, int height)
void onDrawFrame(GL10 unused)
void onSurfaceCreated(GL10 unused, EGLConfig config)
void touchDown(float aX, float aY)