4 ms·
> couldn't we rewrite a DOM/CSS renderer with WebGL (or canvas)? Of course we can. :) But writing full UIs are tons of work. Why are there no OpenGL UI libr
by bhouston 13y ago
> couldn't we rewrite a DOM/CSS renderer with WebGL (or canvas)?
Of course we can. :) But writing full UIs are tons of work.
Why are there no OpenGL UI libraries in wide use on desktops? The same argument should apply to a degree? Or is it just that HTML5 is way less efficient that GUI+, Swing, etc.
- potatolicious 13y agoThere are "OpenGL UI libraries" :P It's called OSX. The main reason why we haven't seen more is because OpenGL up until now has been largely in the sphere of gaming, where standardized UIs aren't a priority. That being said, even in gaming there are a large number of libraries available that help you implement UIs.
- bhouston 13y agoAh, cool. I'm not an OSX developer. The OpenGL UI libraries I've seen on Windows are pretty horrible/limited. Those in games are usually based on Scaleform and are also relatively limited in terms of built-in functionality, although it has wide freedom of design: http://gameware.autodesk.com/scaleform http://gameware.autodesk.com/scaleform
- United857 13y agoThere is an experimental "render DOM content to texture" extension supported by Mozilla called drawWindow that should solve a lot of this. https://blog.mozilla.org/tilt/ https://blog.mozilla.org/tilt/ https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D#drawWindow() https://developer.mozilla.org/en-US/docs/Web/API/CanvasRende... Unfortunately it is not yet available for web content (browser extensions only).