Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a 2d sprite library for webgl? [closed]

Tags:

2d

sprite

webgl

I am looking to build a 2d game using WebGL. I want the hardware acceleration that WebGL provides and I cannot get this from the 2D canvas context in the canvas tag.

With that said, is there a tutorial on creating 2D sprites using webGL? Or, better yet, is there a 2D sprite library for WebGL? Ideally, I'm looking for something like cocos2d ported to WebGL.

Not surprisingly, all of the demos, tutorials and libraries I have found for WebGL focus on 3D manipulation. Are there any WebGL libraries that support 2D sprites?

like image 460
Devon Avatar asked Mar 11 '10 11:03

Devon


1 Answers

I may be mistaken, but I thought that the 2D canvas API was designed in such a way that browsers can make use of hardware acceleration, but they have chosen not to yet. I expect the implementations of canvas 2D to improve dramatically as WebGL progresses.

like image 53
Liam Avatar answered Oct 19 '22 22:10

Liam