¡@

Home 

2014/10/16 ¤W¤È 08:20:34

android Programming Glossary: normalizedinpoint

Android OpenGL ES 2.0 screen coordinates to world coordinates

http://stackoverflow.com/questions/10985487/android-opengl-es-2-0-screen-coordinates-to-world-coordinates

to deal with ogl. float invertedMatrix transformMatrix normalizedInPoint outPoint invertedMatrix new float 16 transformMatrix new float.. invertedMatrix new float 16 transformMatrix new float 16 normalizedInPoint new float 4 outPoint new float 4 Invert y coordinate as android.. Transform the screen point to clip space in ogl 1 1 normalizedInPoint 0 float touch.X 2.0f screenW 1.0 normalizedInPoint 1 float oglTouchY..

Android OpenGL ES 2.0 screen coordinates to world coordinates

http://stackoverflow.com/questions/10985487/android-opengl-es-2-0-screen-coordinates-to-world-coordinates

float screenH cam.GetScreenHeight Auxiliary matrix and vectors to deal with ogl. float invertedMatrix transformMatrix normalizedInPoint outPoint invertedMatrix new float 16 transformMatrix new float 16 normalizedInPoint new float 4 outPoint new float 4 Invert.. invertedMatrix transformMatrix normalizedInPoint outPoint invertedMatrix new float 16 transformMatrix new float 16 normalizedInPoint new float 4 outPoint new float 4 Invert y coordinate as android uses top left and ogl bottom left. int oglTouchY int screenH.. top left and ogl bottom left. int oglTouchY int screenH touch.Y Transform the screen point to clip space in ogl 1 1 normalizedInPoint 0 float touch.X 2.0f screenW 1.0 normalizedInPoint 1 float oglTouchY 2.0f screenH 1.0 normalizedInPoint 2 1.0f normalizedInPoint..