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 com.test.modelviewer; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.FloatBuffer; import java.nio.ShortBuffer; import javax.microedition.khronos.opengles.GL10; public class SimpleCubeObject { private float colors[] = { 0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f, 0.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f, 0.0f, 1.0f, 1.0f, 0.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 0.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f }; private short indices[] = { 0, 1, 2, 0, 2, 3, 1, 5, 6, 1, 6, 2, 2, 6, 7, 2, 7, 3, 3, 7, 4, 3, 4, 0, 0, 4, 5, 0, 5, 1, 7, 6, 5, 7, 5, 4 }; private float vertices[] = { -1.0f, 1.0f, -1.0f, -1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, -1.0f, -1.0f, -1.0f, -1.0f, -1.0f, -1.0f, 1.0f, 1.0f, -1.0f, 1.0f, 1.0f, -1.0f, -1.0f }; private FloatBuffer colorBuffer; private ShortBuffer indexBuffer; private FloatBuffer vertexBuffer; public SimpleCubeObject() { ByteBuffer cbb = ByteBuffer.allocateDirect( colors.length * 4 ); cbb.order( ByteOrder.nativeOrder() ); colorBuffer = cbb.asFloatBuffer(); colorBuffer.put( colors ); colorBuffer.position( 0 ); ByteBuffer ibb = ByteBuffer.allocateDirect( indices.length * 2 ); ibb.order( ByteOrder.nativeOrder() ); indexBuffer = ibb.asShortBuffer(); indexBuffer.put( indices ); indexBuffer.position( 0 ); ByteBuffer vbb = ByteBuffer.allocateDirect( vertices.length * 4 ); vbb.order( ByteOrder.nativeOrder() ); vertexBuffer = vbb.asFloatBuffer(); vertexBuffer.put( vertices ); vertexBuffer.position( 0 ); } public void draw( GL10 gl ) { gl.glFrontFace( GL10.GL_CCW ); gl.glEnable( GL10.GL_CULL_FACE ); gl.glCullFace( GL10.GL_BACK ); gl.glEnableClientState( GL10.GL_COLOR_ARRAY ); gl.glEnableClientState( GL10.GL_VERTEX_ARRAY ); gl.glColorPointer( 4, GL10.GL_FLOAT, 0, colorBuffer ); gl.glVertexPointer( 3, GL10.GL_FLOAT, 0, vertexBuffer ); gl.glDrawElements( GL10.GL_TRIANGLES, indices.length, GL10.GL_UNSIGNED_SHORT, indexBuffer ); gl.glDisableClientState( GL10.GL_VERTEX_ARRAY ); gl.glDisableClientState( GL10.GL_COLOR_ARRAY ); gl.glDisable( GL10.GL_CULL_FACE ); } }