OK, I've identified the possibility of writing my own WebGL implementation on top of an existing OpenGL 2.0/ES framework, this would allow the leveraging browser-based, WebGL development techniques onto both desktop and mobile platforms (so offering both rapid application development and cross-platform).
So, what would be the minimum WebGL-compatible emulation features I would need to implement (i.e. HTML5/WebGL canvas, HTML DOM access, specific HTML tags etc.)?
For example, I'm aware of WebGL's HTML Canvas implementation (for which I've found sevaral OSS function API definitions I can appropriate), however, I'm unaware of how much browser/DOM functionality I might also need to implement. I'll also be leveraging a JavaScript-capable interpreter and an embeddable browser implementation (all open-source).
I do realise this sounds very much like Ludei's CocoonJS, but I'd like to roll my own (free) implementation.
JFYI, my development will be undertaken in a Java/JVM language (e.g. Java, Scala or Groovy)