Wizcorp / Ejecta-X

A Fast, Open Source JavaScript, Canvas & Audio Implementation
http://wizcorp.github.io/Ejecta-X
185 stars 51 forks source link

Implement WebGL context #37

Open aogilvie opened 10 years ago

aogilvie commented 10 years ago

Ref: https://www.khronos.org/registry/webgl/specs/1.0/

gen-failure commented 10 years ago

I am not a C guru, but I checked the ios sources and I think it should be possible to modify them for android env. Is there any problem I do not see?

weepy commented 10 years ago

... you might note that it's possible to compile Objective C for Android using gcc, it might be easier that rewriting them all in C++ dialect

https://code.google.com/p/android-gcc-objc2-0/

On Tue, Jan 28, 2014 at 10:41 AM, Michal Koudelka notifications@github.comwrote:

I am not a C guru, but I checked the ios sources and I think it should be possible to modify them for android env. Is there any problem I do not see?

Reply to this email directly or view it on GitHubhttps://github.com/Wizcorp/Ejecta-X/issues/37#issuecomment-33467464 .

weepy commented 10 years ago

or even just using Clang which is now supported by the NDK

On Tue, Jan 28, 2014 at 10:58 AM, Jonah Fox jonahfox@gmail.com wrote:

... you might note that it's possible to compile Objective C for Android using gcc, it might be easier that rewriting them all in C++ dialect

https://code.google.com/p/android-gcc-objc2-0/

On Tue, Jan 28, 2014 at 10:41 AM, Michal Koudelka < notifications@github.com> wrote:

I am not a C guru, but I checked the ios sources and I think it should be possible to modify them for android env. Is there any problem I do not see?

Reply to this email directly or view it on GitHubhttps://github.com/Wizcorp/Ejecta-X/issues/37#issuecomment-33467464 .

gen-failure commented 10 years ago

@weepy that's what I had in mind :) Since the JSCore lib is used in both versioning, transfering code from ios to android should not be difficuilt. So where possible complications are?

weepy commented 10 years ago

All the native iOS stuff that needs porting ? (e.g. like Apportable does )

I'm not quite sure which bits Ejecta uses thought.

On Tue, Jan 28, 2014 at 11:03 AM, Michal Koudelka notifications@github.comwrote:

@weepy https://github.com/weepy that's what I had in mind :) Since the JSCore lib is used in both versioning, transfering code from ios to android should not be difficuilt. So where possible complications are?

Reply to this email directly or view it on GitHubhttps://github.com/Wizcorp/Ejecta-X/issues/37#issuecomment-33468903 .

aogilvie commented 10 years ago

@DarkenBLN @weepy I think moving to a cross compiler may certainly bring us closer Ejecta iOS quicker.

However, myself and @jrouault are working on other core fixes such as graphics glitches with buffering. :bug:

If someone can put some more research into this, that would be amazing, otherwise it will have to wait a while!

+1 Clang test with NDK. :thumbsup: