If you are trying to get the current model or project matrix, use/copy the MatrixGrabber and MatrixTrackingGL classes (from the API Demoes).
On Aug 17, 11:59 pm, ceder <[email protected]> wrote: > I have stumbled onto the problem of the function glQueryMatrixxOES > being absent from GL10Ext when the Qualcomm hardware opengl es driver > is loaded. It is absent from the list of extensions when I query the > driver. > > When Android gives me a software renderer, the extension is available > and everything is as described in the documentation. > > This is a pretty serious omission. > > Is there a prescribed workaround? > > Thanks, > Chris > > Here's the code I am using: > > <code> > > ByteBuffer bb1 = ByteBuffer.allocateDirect(16*4); > bb1.order(ByteOrder.nativeOrder()); > mantissa = bb1.asIntBuffer(); > mantissa.rewind(); > > ByteBuffer bb2 = ByteBuffer.allocateDirect(16*4); > bb2.order(ByteOrder.nativeOrder()); > exponent = bb2.asIntBuffer(); > exponent.rewind(); > > GL10Ext glx; > if (gl instanceof GL10Ext) > { > glx = (GL10Ext)gl; > > glx.glQueryMatrixxOES(mantissa, exponent); > mantissa.rewind(); > exponent.rewind(); > > for( n=0; n<16; n++ ) { > double p = Math.pow( 2.f, exponent.get(n)); > int p2 = (int)(mantissa.get(n) * p); > tx.matrix.put( n, p2); > } > tx.matrix.rewind();} else { > > Log.e("Node", "We are not getting GL10Ext"); // We never get here. > > } > > </code> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

