ImGuiNET / ImGui.NET

An ImGui wrapper for .NET.
MIT License
1.9k stars 306 forks source link

Where's the OpenTK example? #136

Closed inputusernamehere closed 3 years ago

inputusernamehere commented 5 years ago

The readme claims there are OpenTK examples, but as far as I can tell there are none included in this project, and they are not linked to.

dpethes commented 5 years ago

Look in the commits from 2017/beginning of 2018, it's there somewhere. It was later replaced by Veldrid, I think.

mellinoe commented 5 years ago

Yeah, the OpenTK examples were stripped out, mainly because there occasional bugs caused by OpenTK itself (mostly related to windowing/input), and OpenTK wasn't receiving much development attention.

There has been some discussion on this topic before. I would be happy to support an OpenGL sample application if:

The last time this popped up, @giawa linked a branch of his which implemented a GL renderer: https://github.com/giawa/ImGui.NET/commit/43b2fc4e64e97a86c77cabe72926919cb5885157

That isn't using OpenTK, but you should get a pretty good idea of what the OpenGL calls look like from that branch.

inputusernamehere commented 5 years ago

I can't speak on behalf of OpenTK because I'm not involved with the development of it, but it's currently under active development and a 4.0 version is being prepared with .NET core support. I believe requirements 1-3 are met as of right now. Point 4 I wouldn't know about as I haven't been able to get imgui working with OpenTK myself yet. I'll take a look at the commit you linked though, thanks!

NogginBops commented 4 years ago

If anyone is still interested in a sample project of ImGui.NET working with OpenTK I have such a sample here 🙂: https://github.com/NogginBops/ImGui.NET_OpenTK_Sample

enquel commented 4 years ago

@NogginBops thank you. Works like a charm. I am happy with Veldrid for now, but in case I need this, it will be a time saver.

oohicksyoo commented 4 years ago

@NogginBops Thanks for the sample really helped in setting up my implementation for my engine that is using OpenGL and SDL2

shayded-exe commented 10 months ago

Sorry to revive an old thread, but now that Veldrid is no longer receiving updates, it would be great for this to be revisited. Also, what about Silk.Net?

NogginBops commented 10 months ago

@shayded-exe see my comment for an OpenTK implementation.

For silk I would recommend opening a separate issue, but I do think they provide an implementation but I don't know the details.