microsoft / angle

ANGLE: OpenGL ES to DirectX translation
Other
615 stars 166 forks source link

Request for OpenGL ES template for Visual C# #93

Closed JimSEOW closed 8 years ago

JimSEOW commented 8 years ago

With effort made by @mattleibow at github and Stackoverflow

I think the Angle C# community would welcome the following templates

Preparation of these templates will help Angle c# programmers (1) to explore new ways to develop hybrid UWP (planar/3D) holographics App discussed here.

(2) to develop a better understanding of how the Holographics DirectX [SharpDX] approach is different from OpenGL ES approach, thereby help us to understand and to anticipate what additional challenges ahead in bringing Hololens Angle library to a release version.

=> Comparison between the "Holographic DirectX 11 App (C# UWP)" template and the Angle's "Holographic App for OpenGL ES (C++ UWP)" template reveal interesting Interop learning points

// eglGetPlatformDisplayEXT is an alternative to eglGetDisplay. It allows us to pass in display attributes, used to configure D3D11. PFNEGLGETPLATFORMDISPLAYEXTPROC eglGetPlatformDisplayEXT = (PFNEGLGETPLATFORMDISPLAYEXTPROC)OpenGLES.eglGetProcAddress("eglGetPlatformDisplayEXT");

SpatialInputHandler.cs is available in the SharpDX example, which would also be of interest to both Holographic C++ and C# OpenGL ES developers.

=> Having C# OpenGL ES templates will make it easier for Xamarin iOS and Android OpenGL developers to start experimenting with the Hololens Universe.