[android-developers] Re: OpenGL ES works fine on Emulator but on HTC Hero 1.5 it does not render vertices

2009-11-15 Thread Mika
Ah sorry for long response time. Anyway, I went back to the problem and started using GLSurfaceView instead and it works with the current setup. With the GLSurfaceView, where am I supposed to implement onTouchListener? Since if I make the starting activity to implement the onTouchListener, it

[android-developers] Re: OpenGL ES works fine on Emulator but on HTC Hero 1.5 it does not render vertices

2009-11-15 Thread String
On Nov 15, 1:27 pm, Mika mts...@googlemail.com wrote: With the GLSurfaceView, where am I supposed to implement onTouchListener? In my OpenGL app, I use an onTouchEvent listener on the containing activity instead. Works for me. String -- You received this message because you are subscribed

[android-developers] Re: OpenGL ES works fine on Emulator but on HTC Hero 1.5 it does not render vertices

2009-11-15 Thread Mika
Oh wow, I was so blind, I was just forcefully trying to implement onTouch() instead of onTouchEvent(), as soon as I swapped it, it started to work. Phew... How blind can you became to your own code? =) Thank you guys. On 15 marras, 18:20, String sterling.ud...@googlemail.com wrote: On Nov 15,

[android-developers] Re: OpenGL ES works fine on Emulator but on HTC Hero 1.5 it does not render vertices

2009-11-09 Thread Mika
Hi Robert, Will do. Here goes. First part is the sizeChange() when Android screen size changes and it gets called when the application launches. I'd thought I'd paste in the EGL stuff too, not all of it but some of it since it kind of relates to the initialisation. But yeah, the problem still is

[android-developers] Re: OpenGL ES works fine on Emulator but on HTC Hero 1.5 it does not render vertices

2009-11-09 Thread Robert Green
Ah, I didn't realize how you were initializing GL. I'm bad at the EGL config stuff which is why I just use GLSurfaceView. I'm wondering if your problem is there? Consider trying GLSurfaceView and let me know the results. Otherwise, you may want to debug your init to make sure that it's

[android-developers] Re: OpenGL ES works fine on Emulator but on HTC Hero 1.5 it does not render vertices

2009-11-08 Thread Robert Green
I had a problem with Ortho on my phone vs on the emulator at one point as well. Could you post more of your GL initialization code? My problem was something dumb like I was calling orthox using actual screen dimensions when I needed to either use fixed point there or use orthof. On Nov 8, 3:34