ultralight-ux / Ultralight

Lightweight, high-performance HTML renderer for game and app developers.
https://ultralig.ht
4.69k stars 197 forks source link

C# Bindings #26

Open adamjs opened 6 years ago

adamjs commented 6 years ago

Begin basic C# bindings (pinvoke wrapper for both Ultralight API + Framework API). This ticket depends on: https://github.com/ultralight-ux/ultralight/issues/15

.NET Controls (such as WebBrowser Control replacement) are planned after this.

edwardchanjw commented 6 years ago

Greatly needed it, Let it be alternative and revolution to Electron ecosystem in more high level programming language. Together with Bridge.net, it could make certain apps run and optimize better in C#(.Net Core) landscape than Electron.

.NET Controls can be move slightly behind priority. Let the .NET Core new communities/userland run wild with new alternative first.

codecat commented 6 years ago

I don't think we'll need Bridge.net for Ultralight though.

Misiu commented 5 years ago

User control would be cool, but C# binding is a must-have :)

bravepuzzle commented 5 years ago

Nice to see some progress towards this have been made ;)

RXminuS commented 5 years ago

Would this already work with https://github.com/mono/CppSharp ? Maybe more scalable than maintaining bindings for every language in the core?

MithrilMan commented 4 years ago

any update on C# bindings and dotnet core support?

nils-kt commented 4 years ago

An update would be cool. :)

TYoung86 commented 4 years ago

Here's some fixed up generated C API bindings for current master / v1.2.0-beta.

I'll put up an UltralightSharp binding library on NuGet once I get some tests going - although right now the C API looks incomplete? ulPlatformSetGPUDriver is mentioned but not exposed in the C API.

UltralightSharp.zip

adamjs commented 4 years ago

@TYoung86 has done some excellent work on C# bindings for the 1.2.0 branch-- it's up on GitHub here: https://github.com/ImpromptuNinjas/UltralightSharp

Also we've got a new Discord channel for Ultralight C# bindings, join the chat here: https://discord.gg/dGhpM4r

SupinePandora43 commented 3 years ago

WebBrowser

you mean WPF or WinForms? or them both?