Class Camera3D

java.lang.Object
com.raylib.jextract.Camera3D
Direct Known Subclasses:
Camera

public class Camera3D extends Object
struct Camera3D {
    Vector3 position;
    Vector3 target;
    Vector3 up;
    float fovy;
    int projection;
}
  • Method Details

    • layout

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

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

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

      public static MemorySegment position(MemorySegment struct)
      Getter for field:
      Vector3 position
      
    • position

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

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

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

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

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

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

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

      public static MemorySegment up(MemorySegment struct)
      Getter for field:
      Vector3 up
      
    • up

      public static void up(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      Vector3 up
      
    • fovy$layout

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

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

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

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

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

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

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

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