curiosity-ai / h5

🚀 The next generation C# to JavaScript compiler
https://github.com/curiosity-ai/h5
Apache License 2.0
215 stars 31 forks source link

WebGL2RenderingContext #26

Closed IceReaper closed 3 years ago

IceReaper commented 4 years ago

Hello, as retyped isnt available, any plans on supporting WebGL2RenderingContext?

theolivenbaum commented 4 years ago

Is that available on an existing retyped package?

On Wed, Oct 14, 2020, 3:07 PM Andre Mohren notifications@github.com wrote:

Hello, as retyped isnt available, any plans on supporting WebGL2RenderingContext?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/theolivenbaum/h5/issues/26, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACDCOA5MBSOEIE6IZ46JY5LSKWPADANCNFSM4SQSW2WQ .

IceReaper commented 4 years ago

Yup https://www.nuget.org/packages/Retyped.webgl2/

theolivenbaum commented 4 years ago

Then I might be able to push an h5 package for it. Will check and let you know!

On Wed, Oct 14, 2020, 3:16 PM Andre Mohren notifications@github.com wrote:

Yup https://www.nuget.org/packages/Retyped.webgl2/

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/theolivenbaum/h5/issues/26#issuecomment-708395001, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACDCOA7QQLIJAX2IPH2HML3SKWQELANCNFSM4SQSW2WQ .

theolivenbaum commented 4 years ago

@IceReaper Is there any other retyped package you would be interested at?

IceReaper commented 4 years ago

Atm not. Im working on a simple cross-platform app (desktop and web) which uses a wrapper for opentk / webgl2. The webgl2 package is the only missing component at the moment. If something else (non library, but base html5 api) comes up, ill make another issue about that.

theolivenbaum commented 4 years ago

Added the code here: https://github.com/theolivenbaum/h5/commit/39279355d2fe48b0ef4032f8e1cef2c67e33b5eb

NuGet available here: https://nuget.org/packages/h5.webgl2

theolivenbaum commented 4 years ago

@IceReaper let me know if you hit any issues testing it - and also if any method from the current webgl api is missing since the original Retyped webgl release, those are usually easy to add on top of the code...

IceReaper commented 3 years ago

I can confirm this library works as expected under current H5 and .NET5