feat(api): use uintptr_t instead of intptr_t for pointers (#265)

Image methods now accept the `long` type instead of `int`,
as they are expected to work with pointers as well.
This commit is contained in:
SpaiR authored and GitHub committed 2024-08-29 16:54:43 +03:00
1 parent 473521edba
commit c4c03bee9f
58 files changed
+303 -303

No files matched your search

@@ -24,7 +24,7 @@ public final class ImFontConfig extends ImGuiStructDestroyable {
private native long nCreate(); /*
ImFontConfig* cfg = new ImFontConfig();
cfg->FontDataOwnedByAtlas = false;
return (intptr_t)cfg;
return (uintptr_t)cfg;
*/
/**
@@ -524,7 +524,7 @@ public final class ImFontConfig extends ImGuiStructDestroyable {
}
private native long nGetDstFont(); /*
return (intptr_t)THIS->DstFont;
return (uintptr_t)THIS->DstFont;
*/
private native void nSetDstFont(long value); /*