vujadin / BabylonHx

Port of Babylon.js 3D engine to Haxe.
http:/paradoxplay.com/babylonhx
Apache License 2.0
189 stars 43 forks source link

HTML5: Support multiple context/engine instances. #125

Closed aW4KeNiNG closed 7 years ago

aW4KeNiNG commented 7 years ago

It had the GL Context as static var, so you couldn't create multiple engines on different canvas.

I'm using static extension (HTML5) or import with alias (other platforms).

Just a note: alias must start with an uppercase letter. So the name for alias and the private var is Gl.

vujadin commented 7 years ago

Thanks!