[android-developers] Re: how to get the current matrix mode?

2009-03-25 Thread tcassany
I will write a wrapper as you explain. It's not very beautifull but it's the only solution that I see now. Thank you. Thomas On Mar 24, 8:31 am, Anton socialhac...@gmail.com wrote:     Thomas, I just tested this using the glGetIntegerv method that takes an int array instead of a Buffer.  It

[android-developers] Re: how to get the current matrix mode?

2009-03-25 Thread Streets Of Boston
Before you do all the work, take a look these classes bundled in the OpenGL session of the APIDemos of the samples in the Anroid SDK: MatrixTrackingGL.java. In your SDK or online:

[android-developers] Re: how to get the current matrix mode?

2009-03-24 Thread Anton
Thomas, I just tested this using the glGetIntegerv method that takes an int array instead of a Buffer. It also returned 0 for me. So I dug into the source and found that the implementation of glGetIntegerv doesn't have a case for GL_MATRIX_MODE. And it sets the GL error to GL_INVALID_ENUM