Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
package Syco.glex; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.opengl.GLUtils; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.FloatBuffer; import java.nio.ShortBuffer; import javax.microedition.khronos.opengles.GL10; public class Square { private float[] vertices1; private float[] texture1; private int[] textures1=new int[1]; private short[] indices1 = {0, 1, 2, 0, 2, 3}; private FloatBuffer vertexBuffer1; private ShortBuffer indexBuffer1; private FloatBuffer textureBuffer1; private float[] vertices2; private float[] texture2; private int[] textures2=new int[1]; private short[] indices2 = {0, 2, 1, 0, 3, 2}; private FloatBuffer vertexBuffer2; private ShortBuffer indexBuffer2; private FloatBuffer textureBuffer2; public Square(float w, float h) { vertices1=new float[]{ -w, h, 0.0f, // t l -w, -h, 0.0f, // b l w, -h, 0.0f, // b r w, h, 0.0f // t r }; vertices2=new float[]{ -w, h, 0.0f, // t l -w, -h, 0.0f, // b l w, -h, 0.0f, // b r w, h, 0.0f // t r }; texture1=new float[] { 1.0f, 0.0f, // b r 1.0f, 1.0f, // t r 0.0f, 1.0f, // t l 0.0f, 0.0f, // b l }; texture2=new float[] { 1.0f, 0.0f, // b r 1.0f, 1.0f, // t r 0.0f, 1.0f, // t l 0.0f, 0.0f, // b l }; ByteBuffer vbb; vbb = ByteBuffer.allocateDirect(vertices1.length * 4); vbb.order(ByteOrder.nativeOrder()); vertexBuffer1 = vbb.asFloatBuffer(); vertexBuffer1.put(vertices1); vertexBuffer1.position(0); vbb = ByteBuffer.allocateDirect(texture1.length * 4); vbb.order(ByteOrder.nativeOrder()); textureBuffer1 = vbb.asFloatBuffer(); textureBuffer1.put(texture1); textureBuffer1.position(0); vbb = ByteBuffer.allocateDirect(indices1.length * 2); vbb.order(ByteOrder.nativeOrder()); indexBuffer1 = vbb.asShortBuffer(); indexBuffer1.put(indices1); indexBuffer1.position(0); vbb = ByteBuffer.allocateDirect(vertices2.length * 4); vbb.order(ByteOrder.nativeOrder()); vertexBuffer2 = vbb.asFloatBuffer(); vertexBuffer2.put(vertices2); vertexBuffer2.position(0); vbb = ByteBuffer.allocateDirect(texture2.length * 4); vbb.order(ByteOrder.nativeOrder()); textureBuffer2 = vbb.asFloatBuffer(); textureBuffer2.put(texture2); textureBuffer2.position(0); vbb = ByteBuffer.allocateDirect(indices2.length * 2); vbb.order(ByteOrder.nativeOrder()); indexBuffer2 = vbb.asShortBuffer(); indexBuffer2.put(indices2); indexBuffer2.position(0); } public void draw(GL10 gl) { gl.glBindTexture(GL10.GL_TEXTURE_2D, textures1[0]); gl.glBindTexture(GL10.GL_TEXTURE_2D, textures2[0]); gl.glEnable(GL10.GL_CULL_FACE); gl.glCullFace(GL10.GL_BACK); gl.glFrontFace(GL10.GL_CCW); gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY); gl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexBuffer1); gl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, textureBuffer1); gl.glDrawElements(GL10.GL_TRIANGLES, indices1.length, GL10.GL_UNSIGNED_SHORT, indexBuffer1); gl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexBuffer2); gl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, textureBuffer2); gl.glDrawElements(GL10.GL_TRIANGLES, indices2.length, GL10.GL_UNSIGNED_SHORT, indexBuffer2); gl.glDisableClientState(GL10.GL_VERTEX_ARRAY); gl.glDisableClientState(GL10.GL_TEXTURE_COORD_ARRAY); gl.glDisable(GL10.GL_CULL_FACE); } public void loadGLTexture(GL10 gl, Context context) { gl.glGenTextures(1, textures1, 0); gl.glBindTexture(GL10.GL_TEXTURE_2D, textures1[0]); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S, GL10.GL_REPEAT); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_T, GL10.GL_REPEAT); Bitmap bitmap1=BitmapFactory.decodeResource(context.getResources(), R.drawable.front); GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap1, 0); bitmap1.recycle(); gl.glGenTextures(1, textures2, 0); gl.glBindTexture(GL10.GL_TEXTURE_2D, textures2[0]); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S, GL10.GL_REPEAT); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_T, GL10.GL_REPEAT); Bitmap bitmap2=BitmapFactory.decodeResource(context.getResources(), R.drawable.back); GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap2, 0); bitmap2.recycle(); } }