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

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

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

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages