My development version of CopperLicht now is able to draw 2d rectangles, images, and even text. The text part is a bit tricky to implement in WebGL (ok, let's be honest, this is also the case in OpenGL and Direct3D; drawing 2D text in 3D is not easy anywhere): Internally, a 2d canvas is created, converted to a texture and updated when necessary. Performance-wise this is incredible fast.
The main reason for implementing these features is of course to enable all the 2D overlay and behavior functionality which is offered by CopperCube, now in the WebGL version as well. Designing (game) menus, buttons and HUDs finally also will work in the WebGL target in the next version.
two comments, already:
despite the shape being more rectangular now I think there is something wrong with color
xaos - 19 08 10 - 10:43
but it’s a ‘better’ red now!
niko - 19 08 10 - 11:44