vujadin / BabylonHx

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

Snow backend needs update #87

Closed TiZ-HugLife closed 8 years ago

TiZ-HugLife commented 8 years ago

A whole bunch of stuff recently changed in snow, and thus BabylonHx can no longer be used with snow. The first compile error I got was that snow.system.window.Window didn't exist. One change they had was renaming snow.system to snow.systems but it still doesn't have a Window class; it seems to have been taken out entirely.

With all the changes that apparently happened, I suspect that fixing the Window thing is just going to be the start.

vujadin commented 8 years ago

Update for snow will be uploaded later today when I get back home

TiZ-HugLife commented 8 years ago

Awesome, thanks.

vujadin commented 8 years ago

Snow template has been updated but there are many problems... Web target builds but doesn't render correctly. C++ targets won't build as GL.getExtension() method (and a few other GL methods) are missing ?? It was a big update on their side, hopefully they will fix these issues soon...

TiZ-HugLife commented 8 years ago

It looks like Snow's GL on native is just a set of typedefs to linc_opengl. An issue should probably be filed against that repo, at least for native.

ruby0x1 commented 8 years ago

Hi, @vujadin @TiZ-EX1

on Native getExtension never used to do anything so presumably you weren't using it, rather you're looking for the compilation parity across web? You should use #if js for now.

I'm working through making the WebGL bindings more complete and less vague/undefined - you can see my thinking here. Immediate term I think it makes more sense to have the parity differences being explicitly clear rather than thinking getExtension or other functions are doing something when they aren't (it's a bit of a false contract previously which I wanted to resolve first).

The app structure changed quite a bit if you were down in the internals (something I warned about during the alpha iirc) so if you have any questions about what changed specifically for your needs I can help you out here. I assume you read the changelog but I'll follow this thread and help out here.

vujadin commented 8 years ago

This is fixed on BHX side, closing...