Package org.lwjgl.sdl

Class SDL_CameraSpec.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<SDL_CameraSpec>, NativeResource, Pointer
Enclosing class:
SDL_CameraSpec

public static class SDL_CameraSpec.Buffer extends StructBuffer<SDL_CameraSpec,SDL_CameraSpec.Buffer> implements NativeResource
An array of SDL_CameraSpec structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new SDL_CameraSpec.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by SDL_CameraSpec.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • format

      public int format()
      Returns:
      the value of the format field.
    • colorspace

      public int colorspace()
      Returns:
      the value of the colorspace field.
    • width

      public int width()
      Returns:
      the value of the width field.
    • height

      public int height()
      Returns:
      the value of the height field.
    • framerate_numerator

      public int framerate_numerator()
      Returns:
      the value of the framerate_numerator field.
    • framerate_denominator

      public int framerate_denominator()
      Returns:
      the value of the framerate_denominator field.
    • format

      public SDL_CameraSpec.Buffer format(int value)
      Sets the specified value to the format field.
    • colorspace

      public SDL_CameraSpec.Buffer colorspace(int value)
      Sets the specified value to the colorspace field.
    • width

      public SDL_CameraSpec.Buffer width(int value)
      Sets the specified value to the width field.
    • height

      public SDL_CameraSpec.Buffer height(int value)
      Sets the specified value to the height field.
    • framerate_numerator

      public SDL_CameraSpec.Buffer framerate_numerator(int value)
      Sets the specified value to the framerate_numerator field.
    • framerate_denominator

      public SDL_CameraSpec.Buffer framerate_denominator(int value)
      Sets the specified value to the framerate_denominator field.