import android.opengl.GLU;
import android.opengl.GLUtils;
import android.os.SystemClock;
+import android.util.Log;
import com.example.android.apis.R;
GL10.GL_REPLACE);
InputStream is = mContext.getResources()
- .openRawResource(R.drawable.robot);
+ .openRawResource(R.raw.robot);
Bitmap bitmap;
try {
bitmap = BitmapFactory.decodeStream(is);
gl.glTexParameterx(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_T,
GL10.GL_REPEAT);
+ {
+ long time = SystemClock.uptimeMillis();
+ if (mLastTime != 0) {
+ long delta = time - mLastTime;
+ Log.w("time", Long.toString(delta));
+ }
+ mLastTime = time;
+ }
+
long time = SystemClock.uptimeMillis() % 4000L;
float angle = 0.090f * ((int) time);
private Projector mProjector;
private NumericSprite mNumericSprite;
private float[] mScratch = new float[8];
+ private long mLastTime;
}
class Triangle {