[android-developers] Render mp4 video on a GLSurfaceView

2013-06-24 Thread powerdroid
Does anyone know of any developer documentation or examples that show how to render an mp4 video file to a GLSurfaceView? Is this type of thing even possible? Would the video's alpha channel be preserved? -- -- You received this message because you are subscribed to the Google Groups "Andro

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 pos

[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

[android-developers] How to know which density-specific resources are being used

2011-06-15 Thread powerdroid
Is there a way to know which density-specific resources are being used during runtime? I have an application that will provide appropriate sized png files for the various densities. However, we keep information based on specific pixels and use this information during runtime. Thus, I would need t

[android-developers] Re: Best way to scale for different screen resolutions/dimensions?

2010-08-26 Thread powerdroid
> > > Are you compiling against Android 1.6 (at least)? > > > -- Kostya > > > 22.08.2010 15:54, powerdroid пишет: > > >  The problem, and it may be that I'm misunderstanding how Android > >> handles different screen sizes, is that when trying to inc

[android-developers] Re: Best way to scale for different screen resolutions/dimensions?

2010-08-22 Thread powerdroid
? On Aug 6, 9:04 am, Warren wrote: > Check out onMeasure() and onLayout(). Those functions are called while > views are being positioned, etc. > > On Aug 6, 7:51 am, TreKing wrote: > > > > > On Thu, Aug 5, 2010 at 8:24 PM, powerdroid wrote: > > > > Wha

[android-developers] Best way to scale for different screen resolutions/dimensions?

2010-08-05 Thread powerdroid
I have a class that extends LinearLayout and handles drawing to the screen. (it is in the early stages) How would I go about determining the dimensions of a screen and resizing the images, etc., that this class is drawing to the screen on the fly before actually drawing them to the screen? What