Annotation Interface FFMBooleanInt


@Target({METHOD,PARAMETER}) @Retention(RUNTIME) public @interface FFMBooleanInt
Maps a native integer type, that is larger than 1 byte, to a Java boolean.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Can be used on return types, if the native value is always 0 or 1.
    The return or parameter carrier type.
  • Element Details

    • value

      The return or parameter carrier type.

      If not specified, defaults to SizeCarrier.INT.

      Default:
      INT
    • binary

      boolean binary
      Can be used on return types, if the native value is always 0 or 1.

      When enabled, LWJGL generates simpler bytecode because the integer value is directly returned as a Java boolean, without an explicit comparison.

      Default:
      false