I ended up using the syntax specified by RyanMcNally, using 
"ByteOrder.nativeOrder()" instead of ByteBuffer.nativeOrder()


e.g.
 sphereVertex =
            ByteBuffer.allocateDirect( 400000 ).order( 
ByteOrder.nativeOrder() ).asFloatBuffer();
        

This was after I found a workable syntax elsewhere with the statements 
broken out like this (sphereVertex was previously defined as a FloatBuffer):

        ByteBuffer vbb = ByteBuffer.allocateDirect(400000);
        vbb.order(ByteOrder.nativeOrder());
        sphereVertex = vbb.asFloatBuffer();        

When that worked I took a closer look at the condensed syntax and made the 
one change to ByteOrder and that worked too.      

-- 
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