NogginBops / ImGui.NET_OpenTK_Sample

A sample project showing an ImGui (using ImGui.NET) renderer for OpenTK in C#
106 stars 27 forks source link

Made it a little bit easier to this example into existing projects #1

Closed inputusernamehere closed 4 years ago

inputusernamehere commented 4 years ago

I forgot to mention it in the commit message, but I also removed the unsafe block to make it easier to just copy/paste the example code into existing projects without having to compile with /unsafe.

Also, I wasn't able to get window resizing to work, hence it is commented out.

NogginBops commented 4 years ago

Fantastic changes! Changed the unsafe context sizeof to be a CompilerServices.Unsafe.SizeOf<...> to do proper a "proper" sizeof.

NogginBops commented 4 years ago

I've now also implemented resizing. :)