luca-piccioni / OpenGL.Net

Modern OpenGL bindings for C#.
MIT License
576 stars 109 forks source link

UWP example #11

Open JimSEOW opened 8 years ago

JimSEOW commented 8 years ago

I search for UWP opengl in c# and I found this site as there is underlying ANGLE. Could you do a simple UWP c# example.

JimSEOW commented 8 years ago

https://github.com/lwansbrough/OpenGL.Net/tree/master/OpenGL.UWP

luca-piccioni commented 8 years ago

I noticed that branch. I don't know much about UWP, but you can contribute to it, if you're interested.

JimSEOW commented 7 years ago

@luca-piccioni could you provide a UWP XAML InterOp using OpenGL.NET for Angle?

luca-piccioni commented 7 years ago

My Visual Studio installations are complaining about I'm not running on Windows 10. Apparently it is mandatory to develop on Windows 10 for creating a UWP library. I've no chance to run UWP applications.

Currently I'm playing around .NET standards with VS2017. From this page, I can assert that you need .net std 1.4, isn't? This may be helpful?

Otherwise you can create a PR adding the appropriate project.

JimSEOW commented 7 years ago

FYI: UWP will reach .NET standard 2.0 by FALL. (W10 Creative Fall update).

JimSEOW commented 7 years ago

@luca-piccioni

Looking through your latest codes. I wonder if it is possible to replace GLControl based on System.Windows.Forms.UserControl to one that is based on e.g. WPF: System.Windows.Controls.UserControl

This would eventually make it easier to port WinForm based GLControl to UWP UserControl based GLControl through the WPF UserControl based GLControl

Please see some of the discussion here

mmratio commented 6 years ago

I’m a professional UWP dev who’s interested in this for a side project. I’ll take a look at what I can do to get this to work. I know MS provides a rendering surface for DirectX in UWP so there is probably a good way to make this work.