Le 28/11/2013 15:18, Ero s a écrit : > Hello guys! > > So i buy my first firefoxOS device because i'm really interested in dev apps > for firefoxOS and i'm studying this, i see that firefox have a kernel to do > comunication between UI and Hardware, I think that is what makes possible to > make calls using a HTML5 interface. > > My really question is if this is correct, i can access hardware of my device > to accelerate my HTML5 apps, this will be necessary for build good games, > well someone know how do i get access to hardware in my html5 app? >
Hi, basically you have 3 ways to access the graphic hardware: * do plain HTML and CSS. Gecko is optimized enough to send good commands to the GPU. Try to use animations and transitions on "transform" attributes only and you should be good. * use 2D Canvas, this is hardware accelerated * use 3D (aka WebGL) which lets you paint 3D objects. I don't know much about WebGL so I can't say much more ;) -- Julien
signature.asc
Description: OpenPGP digital signature
_______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
