¡@

Home 

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

android Programming Glossary: mviewheight

Using OpenGL to replace Canvas - Android

http://stackoverflow.com/questions/3597323/using-opengl-to-replace-canvas-android

Here's what I use in my own code public void onSurfaceChanged GL10 gl int width int height mViewWidth width mViewHeight height gl.glViewport 0 0 mViewWidth mViewHeight gl.glLoadIdentity GLU.gluOrtho2D gl 0 mViewWidth mViewHeight 0 public void.. void onSurfaceChanged GL10 gl int width int height mViewWidth width mViewHeight height gl.glViewport 0 0 mViewWidth mViewHeight gl.glLoadIdentity GLU.gluOrtho2D gl 0 mViewWidth mViewHeight 0 public void onSurfaceCreated GL10 gl EGLConfig config gl.glClearColor.. width mViewHeight height gl.glViewport 0 0 mViewWidth mViewHeight gl.glLoadIdentity GLU.gluOrtho2D gl 0 mViewWidth mViewHeight 0 public void onSurfaceCreated GL10 gl EGLConfig config gl.glClearColor 0.5f 0.5f 0.5f 1 gl.glHint GL10.GL_PERSPECTIVE_CORRECTION_HINT..