/** Array version of: {@link #stbi_info_from_callbacks info_from_callbacks} */ @NativeType("int") public static boolean stbi_info_from_callbacks(@NativeType("stbi_io_callbacks const *") STBIIOCallbacks clbk, @NativeType("void *") long user, @NativeType("int *") int[] x, @NativeType("int *") int[] y, @NativeType("int *") int[] comp) { if (CHECKS) { check(x, 1); check(y, 1); check(comp, 1); STBIIOCallbacks.validate(clbk.address()); } return nstbi_info_from_callbacks(clbk.address(), user, x, y, comp) != 0; }
/** * Callback version of {@link #stbi_info info}. * * @param clbk an {@link STBIIOCallbacks} struct * @param user a pointer to user data * @param x outputs the image width in pixels * @param y outputs the image height in pixels * @param comp outputs number of components in image */ @NativeType("int") public static boolean stbi_info_from_callbacks(@NativeType("stbi_io_callbacks const *") STBIIOCallbacks clbk, @NativeType("void *") long user, @NativeType("int *") IntBuffer x, @NativeType("int *") IntBuffer y, @NativeType("int *") IntBuffer comp) { if (CHECKS) { check(x, 1); check(y, 1); check(comp, 1); STBIIOCallbacks.validate(clbk.address()); } return nstbi_info_from_callbacks(clbk.address(), user, memAddress(x), memAddress(y), memAddress(comp)) != 0; }