1 package com.visagetechnologies.visagetrackerdemo;
3 import javax.microedition.khronos.egl.EGLConfig;
4 import javax.microedition.khronos.opengles.GL10;
5 import javax.microedition.khronos.opengles.GL11;
6 import javax.microedition.khronos.opengles.GL11Ext;
7 import android.content.Context;
8 import android.graphics.Bitmap;
9 import android.graphics.Canvas;
10 import android.graphics.Point;
11 import android.graphics.drawable.Drawable;
12 import android.opengl.GLSurfaceView;
13 import android.opengl.GLUtils;
14 import android.util.Log;
15 import android.view.Display;
16 import android.view.WindowManager;
24 int[] textures =
new int[3];
47 gl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);
48 gl.glEnable(GL10.GL_BLEND);
61 public void onSurfaceCreated(GL10 gl, EGLConfig config)
63 WindowManager wm = (WindowManager) _context.getSystemService(Context.WINDOW_SERVICE);
64 Display display = wm.getDefaultDisplay();
65 Point size =
new Point();
66 display.getSize(size);
77 public native
void DisplayInstructions();
81 System.loadLibrary(
"VisageVision");
82 System.loadLibrary(
"VisageWrapper");
void onDrawFrame(GL10 gl)
Implementation of onDrawFrame method provided by GLSurfaceView.Renderer interface.
TrackerRenderer class provides implementation of rendering functions required for displaying tracking...
void onSurfaceChanged(GL10 gl, int width, int height)
Implementation of surfaceChanged method provided by SurfaceHolder.Callback class. ...
native boolean displayTrackingStatus(int width, int height)
Interface to native method used to draw current frame analyzed by tracker and face model generated fr...