the in-game editor is built primarily using Dear ImGui; the .map file support that allows us importing maps made in TrenchBroom uses the libmap library (ported to Haxe for my own ease of use, but the original is in C so should be more relevant to your usecase)