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

@@ -63,7 +63,7 @@ public final class ImFontAtlas extends ImGuiStructDestroyable {
*/
private native long nCreate(); /*
return (intptr_t)(new ImFontConfig());
return (uintptr_t)(new ImFontConfig());
*/
@BindingMethod
@@ -243,7 +243,7 @@ public final class ImFontAtlas extends ImGuiStructDestroyable {
* It is passed back to you during rendering via the ImDrawCmd structure.
*/
@BindingMethod
public native void SetTexID(@ArgValue(callPrefix = "(ImTextureID)(intptr_t)") int textureID);
public native void SetTexID(@ArgValue(callPrefix = "(ImTextureID)(uintptr_t)") long textureID);
//-------------------------------------------
// Glyph Ranges