[android-developers] Re: draw texture in OpenGL Android from 0,0 coordinates

2012-03-03 Thread Indicator Veritatis
Use absolute screen coordinates in OpenGL? That defeats the purpose of much of OpenGL. The reason it takes you from world coordinates to object coordinates to camera coordinates to clip coordinates to device coordinates is (among other things) so that you never DO need to know the device

[android-developers] Re: draw texture in OpenGL Android from 0,0 coordinates

2012-03-02 Thread Rikki
Thanks for the reply. I did the same thing but its getting difficult to manage the coordinates in floating points. Is there a way out to use the absolute screen coordinates in OpenGL? if so can you provide with some example to do it. On Feb 10, 6:44 pm, niko20 nikolatesl...@yahoo.com wrote: No,

[android-developers] Re: draw texture in OpenGL Android from 0,0 coordinates

2012-02-10 Thread niko20
No, you shouldn't change the vertices if you don't have to. To move an image just perform a glTranslate. So what you do is like this: glTranslate(0,0); DrawYourImage(); glTranslate(x,x); DrawYourImage(); glTranslate(x,x); DrawYourImage(); Etc. -niko On Feb 8, 12:58 am, Rikki