Closed 01010111 closed 6 years ago
Just ran a quick test on my OSX machine and get the same, I was able to solve it using the Pointer.arrayElem() function instead of addressOf.
ImGui.image(Pointer.arrayElem(array, 0).rawCast(), ImVec2.create(128, 128));
Interestingly enough using the array access like you have works fine in Windows.
When trying to access a FlxSprite in an array:
ImGui.image(Pointer.addressOf(tiles[0]).rawCast(), ImVec2.create(32, 32));
I get an error when compiling:Is there any way to get an image from an array?