MatrixStack.java

I dislike having to use a software solution for my Skeletons, but
whatever.

What's even less cool is that MatrixStack.java has a bug (that I
found), that is already in the Android Bug database for almost a year:
http://code.google.com/p/android/issues/detail?id=1037

For fun, search 3D on the Android Market.


On Aug 18, 7:44 am, Streets Of Boston <[email protected]> wrote:
> 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 functionglQueryMatrixxOES
> > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to