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 javax.microedition.khronos.egl.EGLConfig; import javax.microedition.khronos.opengles.GL10; import android.content.Context; import android.opengl.GLSurfaceView; import android.opengl.GLU; import android.opengl.GLSurfaceView.Renderer; import android.view.MotionEvent; public class GLControlView extends GLSurfaceView implements Renderer { private float xPrevious, yPrevious; private float xRotation = 0.0f, yRotation = 0.0f; private SimpleCubeObject cubeObject; public GLControlView( Context context ) { super( context ); this.setRenderer( this ); this.requestFocus(); this.setFocusableInTouchMode( true ); cubeObject = new SimpleCubeObject(); } public void onSurfaceCreated( GL10 gl, EGLConfig config ) { gl.glClearColor( 0.0f, 0.0f, 0.0f, 0.5f ); gl.glShadeModel( GL10.GL_SMOOTH ); gl.glClearDepthf( 1.0f ); gl.glEnable( GL10.GL_DEPTH_TEST ); gl.glDepthFunc( GL10.GL_LEQUAL ); gl.glHint( GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_NICEST ); } public void onDrawFrame( GL10 gl ) { gl.glClear( GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT ); gl.glLoadIdentity(); gl.glTranslatef( 0.0f, 0.0f, -10.0f ); gl.glPushMatrix(); gl.glRotatef( xRotation, 1.0f, 0.0f, 0.0f ); gl.glRotatef( yRotation, 0.0f, 1.0f, 0.0f ); gl.glPushMatrix(); cubeObject.draw( gl ); gl.glPopMatrix(); gl.glPopMatrix(); } public void onSurfaceChanged( GL10 gl, int width, int height ) { gl.glViewport( 0, 0, width, height ); gl.glMatrixMode( GL10.GL_PROJECTION ); gl.glLoadIdentity(); GLU.gluPerspective( gl, 45.0f, ( ( float )width / ( float )height ), 0.1f, 100.0f ); gl.glMatrixMode( GL10.GL_MODELVIEW ); gl.glLoadIdentity(); } @Override public boolean onTouchEvent( MotionEvent event ) { float xEvent = event.getX(); float yEvent = event.getY(); switch( event.getAction() ) { case MotionEvent.ACTION_DOWN: { xPrevious = xEvent; yPrevious = yEvent; return true; } case MotionEvent.ACTION_MOVE: { float xDelta = xEvent - xPrevious; float yDelta = yEvent - yPrevious; xRotation += ( yDelta * 0.5f ); yRotation += ( xDelta * 0.5f ); xPrevious = xEvent; yPrevious = yEvent; return true; } default: return super.onTouchEvent( event ); } } }