Class Camera2D

java.lang.Object
com.raylib.jextract.Camera2D

public class Camera2D extends Object
struct Camera2D {
    Vector2 offset;
    Vector2 target;
    float rotation;
    float zoom;
}
  • Method Details

    • layout

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

      public static final GroupLayout offset$layout()
      Layout for field:
      Vector2 offset
      
    • offset$offset

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

      public static MemorySegment offset(MemorySegment struct)
      Getter for field:
      Vector2 offset
      
    • offset

      public static void offset(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      Vector2 offset
      
    • target$layout

      public static final GroupLayout target$layout()
      Layout for field:
      Vector2 target
      
    • target$offset

      public static final long target$offset()
      Offset for field:
      Vector2 target
      
    • target

      public static MemorySegment target(MemorySegment struct)
      Getter for field:
      Vector2 target
      
    • target

      public static void target(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      Vector2 target
      
    • rotation$layout

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

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

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

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

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

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

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

      public static void zoom(MemorySegment struct, float fieldValue)
      Setter for field:
      float zoom
      
    • 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()