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)
class Game { public Game() { mGame = this; } public void Init(GL10 gl, Resources res) { mDevice = new Device(gl, res); mRB = mDevice.CreateRenderBuffer(); mRB.CreateQuad(null); mTexture = mDevice.CreateTexture("icon"); } public boolean Update() { return true; } public void Render() { mDevice.Begin(); Matrix r1 = new Matrix(); r1.SetIdentity(); r1.SetRotateY(mAngle); Matrix r2 = new Matrix(); r2.SetIdentity(); r2.SetRotateX(mAngle*0.25f); Matrix m = new Matrix(); m.SetIdentity(); //m.SetScale(new Vector(0.5f, 0.5f, 0.5f)); m = m.Multiply(r1); m = m.Multiply(r2); m.SetTranslation(new Vector(0, 0, -3.0f)); mDevice.SetMatrix(m, Device.MatrixMode.Model); mDevice.Bind(mTexture); mDevice.Render(mRB); mAngle += 0.01f; mDevice.End(); } public void Resize(int width, int height) { mDevice.Resize(width, height); } static Game Get() { return mGame; } static Game mGame; private Texture mTexture; private float mAngle; private Device mDevice; private RenderBuffer mRB; } public class AppEntry extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mGame = new Game(); requestWindowFeature(Window.FEATURE_NO_TITLE); mView = new AppView(getApplication()); mRenderer = new AppRenderer(this); mView.setRenderer(mRenderer); setContentView(mView); //mThread.setState(Thread.STATE_RUNNING); //mThread.setState(Thread.STATE_READY); } private Game mGame; private AppView mView; private AppRenderer mRenderer; private AppThread mThread; } class AppThread extends Thread { @Override public void run() { while (Game.Get().Update()) { } } } class AppView extends GLSurfaceView { public AppView(Application app) { super(app); } @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER) { return true; } return super.onKeyDown(keyCode, event); } } class AppRenderer implements GLSurfaceView.Renderer { public AppRenderer(Activity app) { mActivity = app; } public void onSurfaceCreated(GL10 gl, EGLConfig config) { Game.Get().Init(gl, mActivity.getResources()); } public void onDrawFrame(GL10 gl) { Game.Get().Render(); } public void onSurfaceChanged(GL10 gl, int width, int height) { Game.Get().Resize(width, height); } private Activity mActivity; }