Class ecs_app_desc_t

java.lang.Object
com.github.elebras1.flecs.ecs_app_desc_t

public class ecs_app_desc_t extends Object
struct ecs_app_desc_t {
    float target_fps;
    float delta_time;
    int32_t threads;
    int32_t frames;
    _Bool enable_rest;
    _Bool enable_stats;
    uint16_t port;
    ecs_app_init_action_t init;
    void *ctx;
}
  • Method Details

    • layout

      public static final GroupLayout layout()
      The layout of this struct
    • target_fps$layout

      public static final ValueLayout.OfFloat target_fps$layout()
      Layout for field:
      float target_fps
      
    • target_fps$offset

      public static final long target_fps$offset()
      Offset for field:
      float target_fps
      
    • target_fps

      public static float target_fps(MemorySegment struct)
      Getter for field:
      float target_fps
      
    • target_fps

      public static void target_fps(MemorySegment struct, float fieldValue)
      Setter for field:
      float target_fps
      
    • delta_time$layout

      public static final ValueLayout.OfFloat delta_time$layout()
      Layout for field:
      float delta_time
      
    • delta_time$offset

      public static final long delta_time$offset()
      Offset for field:
      float delta_time
      
    • delta_time

      public static float delta_time(MemorySegment struct)
      Getter for field:
      float delta_time
      
    • delta_time

      public static void delta_time(MemorySegment struct, float fieldValue)
      Setter for field:
      float delta_time
      
    • threads$layout

      public static final ValueLayout.OfInt threads$layout()
      Layout for field:
      int32_t threads
      
    • threads$offset

      public static final long threads$offset()
      Offset for field:
      int32_t threads
      
    • threads

      public static int threads(MemorySegment struct)
      Getter for field:
      int32_t threads
      
    • threads

      public static void threads(MemorySegment struct, int fieldValue)
      Setter for field:
      int32_t threads
      
    • frames$layout

      public static final ValueLayout.OfInt frames$layout()
      Layout for field:
      int32_t frames
      
    • frames$offset

      public static final long frames$offset()
      Offset for field:
      int32_t frames
      
    • frames

      public static int frames(MemorySegment struct)
      Getter for field:
      int32_t frames
      
    • frames

      public static void frames(MemorySegment struct, int fieldValue)
      Setter for field:
      int32_t frames
      
    • enable_rest$layout

      public static final ValueLayout.OfBoolean enable_rest$layout()
      Layout for field:
      _Bool enable_rest
      
    • enable_rest$offset

      public static final long enable_rest$offset()
      Offset for field:
      _Bool enable_rest
      
    • enable_rest

      public static boolean enable_rest(MemorySegment struct)
      Getter for field:
      _Bool enable_rest
      
    • enable_rest

      public static void enable_rest(MemorySegment struct, boolean fieldValue)
      Setter for field:
      _Bool enable_rest
      
    • enable_stats$layout

      public static final ValueLayout.OfBoolean enable_stats$layout()
      Layout for field:
      _Bool enable_stats
      
    • enable_stats$offset

      public static final long enable_stats$offset()
      Offset for field:
      _Bool enable_stats
      
    • enable_stats

      public static boolean enable_stats(MemorySegment struct)
      Getter for field:
      _Bool enable_stats
      
    • enable_stats

      public static void enable_stats(MemorySegment struct, boolean fieldValue)
      Setter for field:
      _Bool enable_stats
      
    • port$layout

      public static final ValueLayout.OfShort port$layout()
      Layout for field:
      uint16_t port
      
    • port$offset

      public static final long port$offset()
      Offset for field:
      uint16_t port
      
    • port

      public static short port(MemorySegment struct)
      Getter for field:
      uint16_t port
      
    • port

      public static void port(MemorySegment struct, short fieldValue)
      Setter for field:
      uint16_t port
      
    • init$layout

      public static final AddressLayout init$layout()
      Layout for field:
      ecs_app_init_action_t init
      
    • init$offset

      public static final long init$offset()
      Offset for field:
      ecs_app_init_action_t init
      
    • init

      public static MemorySegment init(MemorySegment struct)
      Getter for field:
      ecs_app_init_action_t init
      
    • init

      public static void init(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_app_init_action_t init
      
    • ctx$layout

      public static final AddressLayout ctx$layout()
      Layout for field:
      void *ctx
      
    • ctx$offset

      public static final long ctx$offset()
      Offset for field:
      void *ctx
      
    • ctx

      public static MemorySegment ctx(MemorySegment struct)
      Getter for field:
      void *ctx
      
    • ctx

      public static void ctx(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      void *ctx
      
    • asSlice

      public static MemorySegment asSlice(MemorySegment array, long index)
      Obtains a slice of arrayParam which selects the array element at index. The returned segment has address arrayParam.address() + index * layout().byteSize()
    • sizeof

      public static long sizeof()
      The size (in bytes) of this struct
    • allocate

      public static MemorySegment allocate(SegmentAllocator allocator)
      Allocate a segment of size layout().byteSize() using allocator
    • allocateArray

      public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator)
      Allocate an array of size elementCount using allocator. The returned segment has size elementCount * layout().byteSize().
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size layout().byteSize()
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size elementCount * layout().byteSize()