Skip to content
This repository has been archived by the owner on Aug 5, 2021. It is now read-only.

A sample project showing a ImGui (using ImGui.NET) renderer for OpenTK in C#

Notifications You must be signed in to change notification settings

inputusernamehere/ImGui.NET_OpenTK_Sample

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dear Imgui Sample using OpenTK

BadImageFormatexception

If you get the following error you might have to set your platform target to x86:

System.BadImageFormatException: 'An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)'

To do that, right click your project (all projects referencing ImGui.NET), click "Properties", click "Build", and change the "Platform target" to "x86".

Remember to enable/disable OpenGL features after use!

Note that ImGuiController.Render() enables and disables some OpenGL features, such as blending, scissor testing, face culling and depth testing. It also changes the blend equation and blend function. Remember to reset these after you call ImGuiController.Render()!

About

A sample project showing a ImGui (using ImGui.NET) renderer for OpenTK in C#

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%