Monday, August 13, 2012

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

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 <de...@levelgroundmedia.com> 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.

Altering vertex positions will scale your image "automatically".

--
H

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate