microsoft / Chakra-Samples

Repository for Chakra JavaScript engine related samples.
MIT License
216 stars 84 forks source link

OpenGL Canvas sample in c#? #42

Open JimSEOW opened 8 years ago

JimSEOW commented 8 years ago

Is it possible to demonstrate the OpenGL sample in c#?

Eventually, my plan is to study that for making it works with UWP using Angle

liminzhu commented 8 years ago

It is doable. You need to use P/Invoke for JSRT APIs and find/write a wrapper for opengl stuff.

JimSEOW commented 8 years ago

@liminzhu I am currently looking into the Canvas OpenGL C++ sample

There are currently different opportunities for C# developers to "learnByPorting" existing WebGL to UWP through (1) pure C# through ANGLE or (2) C#/JSRT hybrid (WebGL.js) through Chakra.

A few of us are testing option (1) to make it works for W10, W10M and Hololens. It would be great if there is effort here (providing basic sample like the OpenGL Engine but for c#) for option (2)

These samples will help C# developers to be creative in mixing the different Microsoft technologies to bring 3D content to UWP universe.