¡@

Home 

2014/10/16 ¤W¤È 08:19:33

android Programming Glossary: modus

How to use onSensorChanged sensor data in combination with OpenGL

http://stackoverflow.com/questions/2881128/how-to-use-onsensorchanged-sensor-data-in-combination-with-opengl

private static final boolean TRY_TRANSPOSED_VERSION false MODUS overview 1 unbufferd data directly transfaired from the rotation.. for all possibilities private static int MODUS 2 private GLSurfaceView openglView private FloatBuffer vertexBuffer.. matrix gl.glLoadIdentity move camera away a little bit if MODUS 1 MODUS 2 MODUS 3 MODUS 4 if landscape in landscape mode first..

How to use onSensorChanged sensor data in combination with OpenGL

http://stackoverflow.com/questions/2881128/how-to-use-onsensorchanged-sensor-data-in-combination-with-opengl

extends Activity implements Renderer SensorEventListener private static final boolean TRY_TRANSPOSED_VERSION false MODUS overview 1 unbufferd data directly transfaired from the rotation matrix to the modelview matrix 2 buffered version of 1.. see http www.songho.ca opengl gl_anglestoaxes.html#anglestoaxes for all possibilities private static int MODUS 2 private GLSurfaceView openglView private FloatBuffer vertexBuffer private ByteBuffer indexBuffer private FloatBuffer colorBuffer.. matrix gl.glMatrixMode GL10.GL_MODELVIEW init modelview matrix gl.glLoadIdentity move camera away a little bit if MODUS 1 MODUS 2 MODUS 3 MODUS 4 if landscape in landscape mode first remap the rotationMatrix before using it with glMultMatrixf..