Aidan63 / linc_imgui

Haxe/hxcpp @:native bindings for Dear ImGui
MIT License
44 stars 7 forks source link

Test for Kha not up-to-date #10

Open tienery opened 2 years ago

tienery commented 2 years ago

I have been looking at using this project now that you support docking (which is awesome by the way), however I've noticed the test for Kha has not been updated in a while.

I fixed some minor issues myself, but compiling again has resulted in a multitude of errors:

e:\...\test\kha\Sources/ImGuiDemo.hx:81: characters 31-44 : cpp.Star<imgui.ImFontAtlas> should be cpp.RawPointer<Unknown<0>>
e:\...\test\kha\Sources/ImGuiDemo.hx:81: characters 31-44 : Null<imgui.ImFontAtlas> should be cpp.RawPointer<Unknown<0>>
e:\...\test\kha\Sources/ImGuiDemo.hx:81: characters 31-44 : imgui.ImFontAtlas should be cpp.RawPointer<Unknown<0>>
e:\....\test\kha\Sources/ImGuiDemo.hx:81: characters 31-44 : For function argument 'ptr'
e:\...\test\kha\Sources/ImGuiDemo.hx:167: characters 21-56 : cpp.RawPointer<Unknown<0>> should be imgui.ImTextureID
e:\...\test\kha\Sources/ImGuiDemo.hx:167: characters 21-56 : cpp.RawPointer<Unknown<0>> should be cpp.Star<cpp.Void>
e:\...\test\kha\Sources/ImGuiDemo.hx:167: characters 21-56 : cpp.RawPointer<Unknown<0>> should be Null<cpp.Void>
e:\...\test\kha\Sources/ImGuiDemo.hx:167: characters 21-56 : cpp.RawPointer<Unknown<0>> should be cpp.Void
e:\...\test\kha\Sources/ImGuiDemo.hx:167: characters 21-56 : For function argument '_user_texture_id'
e:\...\test\kha\Sources/ImGuiDemo.hx:246: characters 34-54 : cpp.Star<imgui.ImDrawList> should be cpp.RawPointer<Unknown<0>>
e:\...\test\kha\Sources/ImGuiDemo.hx:246: characters 34-54 : Null<imgui.ImDrawList> should be cpp.RawPointer<Unknown<0>>
e:\...\test\kha\Sources/ImGuiDemo.hx:246: characters 34-54 : imgui.ImDrawList should be cpp.RawPointer<Unknown<0>>
e:\...\test\kha\Sources/ImGuiDemo.hx:246: characters 34-54 : For function argument 'ptr'
e:\...\test\kha\Sources/ImGuiDemo.hx:182: characters 16-35 : cpp.Star<imgui.ImDrawData> should be cpp.RawPointer<imgui.ImDrawData>
e:\...\test\kha\Sources/ImGuiDemo.hx:182: characters 16-35 : Null<imgui.ImDrawData> should be cpp.RawPointer<imgui.ImDrawData>
e:\...\test\kha\Sources/ImGuiDemo.hx:182: characters 16-35 : imgui.ImDrawData should be cpp.RawPointer<imgui.ImDrawData>
e:\...\test\kha\Sources/ImGuiDemo.hx:182: characters 16-35 : For function argument '_dataRawPtr'

Although I will look into fixing this myself, it may be worth investigating and updating the current Test for Kha to ensure it works with the current version of linc_imgui. If possible, I will make a PR if I manage to fix these issues myself.

Aidan63 commented 2 years ago

I don't use kha myself and that sample was provided by a another contributor so I'm not surprised its fallen into disrepair. I'll try and make time on the weekend to look into getting it updated.