Hi,

i suggest checking the extension string you can get via a brave call
to gl.glGetString( GL10.GL_EXTENSIONS ). I suspect that the software
renderer that's used for OpenGL on the emulator does not support this
extension. The casting might seem a bit barbaric at first but you get
used to it :). Not sure why directional lights wouldn't work.

On 13 Mrz., 16:50, JimVonMoon <[email protected]> wrote:
> Hello! :-)
>
> I'll try to make this brief:
>
> public void draw(GL10 gl)
> {
>   gl.glMatrixMode(GL11Ext.GL_MATRIX_PALETTE_OES);
>   ((GL11Ext)gl).glCurrentPaletteMatrixOES(0); // <---- I get
> java.lang.UnsupportedOperationException here.
>
> }
>
> I am using Android emulator under Windows XP and Eclipse. So my
> question is:
> Is that just an emulator issue or is it really unsupported?
>
> I wanted to check if Android SDK is any good before I buy a real
> device so I can't verify that issue by myself. As for now I can't say
> that I like this SDK - necessity to cast GL10 objects to GL11, GL11Ext
> etc. is ummm... barbaric? I also had problems with directional
> lighting and now this - go figure...
>
> Anyway, thanks for help. :-)
>
> --
> Cheers, :-)
> JimVonMoon

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