private void init(boolean createVBOs) {
mCamera = new Camera2D();
mCamera.setProjectionMatrix(0, 0);
mVPMatrix = new Matrix4();
float[] vertices = new float[]{
-.5f, .5f, 0,
.5f, .5f, 0,
.5f, -.5f, 0,
-.5f, -.5f, 0
};
float[] textureCoords = new float[]{
0, 1, 1, 1, 1, 0, 0, 0
};
float[] normals = new float[]{
0, 0, 1,
0, 0, 1,
0, 0, 1,
0, 0, 1
};
int[] indices = new int[]{0, 2, 1, 0, 3, 2};
setData(vertices, normals, textureCoords, null, indices, createVBOs);
vertices = null;
normals = null;
textureCoords = null;
indices = null;
mEnableDepthTest = false;
mEnableDepthMask = false;
}