Back to project page jmini3d.
The source code is released under:
Copyright 2012 Mobialia http://www.mobialia.com/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to ...
If you think the Android project jmini3d listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package jmini3d.android.demo; /*from w ww . java 2 s .c o m*/ import android.os.Bundle; import android.widget.LinearLayout; import jmini3d.android.Activity3d; import jmini3d.android.input.InputController; import jmini3d.demo.DemoSceneController; public class DemoActivity extends Activity3d { InputController inputController; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); DemoSceneController sceneController = new DemoSceneController(); glSurfaceView3d.setSceneController(sceneController); glSurfaceView3d.getRenderer3d().setLogFps(true); inputController = new InputController(glSurfaceView3d); inputController.setTouchListener(sceneController); inputController.setKeyListener(sceneController); } public void onCreateSetContentView() { setContentView(R.layout.main); LinearLayout root = ((LinearLayout) findViewById(R.id.root)); root.addView(glSurfaceView3d); } }