Re: [android-developers] Resizing a 2D OpenGL ES Texture/Sprite during render

2012-08-13 Thread Harri Smått
On Aug 13, 2012, at 9:50 PM, powerdroid wrote: > So, in a sense we move the sprite in the Z axis and that determines the size > it will be on the screen, correct? You can alter x/y coordinates also which may make it easier too as you don't have to worry about depth buffer. Making it (x, y, 0)

Re: [android-developers] Resizing a 2D OpenGL ES Texture/Sprite during render

2012-08-13 Thread powerdroid
So, in a sense we move the sprite in the Z axis and that determines the size it will be on the screen, correct? On Monday, August 13, 2012 2:11:25 PM UTC-4, Harri Smått wrote: > > > On Aug 13, 2012, at 9:03 PM, powerdroid > > > wrote: > > > I wonder if it is possible (and if so, how it is done

Re: [android-developers] Resizing a 2D OpenGL ES Texture/Sprite during render

2012-08-13 Thread Harri Smått
On Aug 13, 2012, at 9:03 PM, powerdroid wrote: > I wonder if it is possible (and if so, how it is done) to scale a 2D > Texture/Sprite during rendering. Once you render an image to screen you have two things for it; 1. Vertex positions in 2D space. 2. Texture coordinates for vertices. Alter

[android-developers] Resizing a 2D OpenGL ES Texture/Sprite during render

2012-08-13 Thread powerdroid
I wonder if it is possible (and if so, how it is done) to scale a 2D Texture/Sprite during rendering. For example, I have a 128x128 image that I will load and use for the texture, but I would like to draw that image sometimes as 100%, sometimes as 85% of its size, and sometimes as 70% of its s