Class SphereSupport


public class SphereSupport extends Support
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • SphereSupport

      protected SphereSupport()
    • SphereSupport

      protected SphereSupport(long address)
    • SphereSupport

      public SphereSupport(float radius)
      Parameters:
      radius - WebIDL type: float
  • Method Details

    • wrapPointer

      public static SphereSupport wrapPointer(long address)
    • arrayGet

      public static SphereSupport arrayGet(long baseAddress, int index)
    • createAt

      public static SphereSupport createAt(long address, float radius)
      Parameters:
      address - Pre-allocated memory, where the object is created.
      radius - WebIDL type: float
      Returns:
      Stack allocated object of SphereSupport
    • createAt

      public static <T> SphereSupport createAt(T allocator, NativeObject.Allocator<T> allocate, float radius)
      Type Parameters:
      T - Allocator class, e.g. LWJGL's MemoryStack.
      Parameters:
      allocator - Object to use for allocation, e.g. an instance of LWJGL's MemoryStack.
      allocate - Method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.
      radius - WebIDL type: float
      Returns:
      Stack allocated object of SphereSupport
    • destroy

      public void destroy()
      Overrides:
      destroy in class Support
    • getRadius

      public float getRadius()
      Returns:
      WebIDL type: float
    • setRadius

      public void setRadius(float value)
      Parameters:
      value - WebIDL type: float