Package org.lwjgl.sdl

Class SDL_GPUColorTargetBlendState.Buffer

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

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

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new SDL_GPUColorTargetBlendState.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_GPUColorTargetBlendState.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

    • src_color_blendfactor

      public int src_color_blendfactor()
      Returns:
      the value of the src_color_blendfactor field.
    • dst_color_blendfactor

      public int dst_color_blendfactor()
      Returns:
      the value of the dst_color_blendfactor field.
    • color_blend_op

      public int color_blend_op()
      Returns:
      the value of the color_blend_op field.
    • src_alpha_blendfactor

      public int src_alpha_blendfactor()
      Returns:
      the value of the src_alpha_blendfactor field.
    • dst_alpha_blendfactor

      public int dst_alpha_blendfactor()
      Returns:
      the value of the dst_alpha_blendfactor field.
    • alpha_blend_op

      public int alpha_blend_op()
      Returns:
      the value of the alpha_blend_op field.
    • color_write_mask

      public byte color_write_mask()
      Returns:
      the value of the color_write_mask field.
    • enable_blend

      public boolean enable_blend()
      Returns:
      the value of the enable_blend field.
    • enable_color_write_mask

      public boolean enable_color_write_mask()
      Returns:
      the value of the enable_color_write_mask field.
    • src_color_blendfactor

      public SDL_GPUColorTargetBlendState.Buffer src_color_blendfactor(int value)
      Sets the specified value to the src_color_blendfactor field.
    • dst_color_blendfactor

      public SDL_GPUColorTargetBlendState.Buffer dst_color_blendfactor(int value)
      Sets the specified value to the dst_color_blendfactor field.
    • color_blend_op

      public SDL_GPUColorTargetBlendState.Buffer color_blend_op(int value)
      Sets the specified value to the color_blend_op field.
    • src_alpha_blendfactor

      public SDL_GPUColorTargetBlendState.Buffer src_alpha_blendfactor(int value)
      Sets the specified value to the src_alpha_blendfactor field.
    • dst_alpha_blendfactor

      public SDL_GPUColorTargetBlendState.Buffer dst_alpha_blendfactor(int value)
      Sets the specified value to the dst_alpha_blendfactor field.
    • alpha_blend_op

      public SDL_GPUColorTargetBlendState.Buffer alpha_blend_op(int value)
      Sets the specified value to the alpha_blend_op field.
    • color_write_mask

      public SDL_GPUColorTargetBlendState.Buffer color_write_mask(byte value)
      Sets the specified value to the color_write_mask field.
    • enable_blend

      public SDL_GPUColorTargetBlendState.Buffer enable_blend(boolean value)
      Sets the specified value to the enable_blend field.
    • enable_color_write_mask

      public SDL_GPUColorTargetBlendState.Buffer enable_color_write_mask(boolean value)
      Sets the specified value to the enable_color_write_mask field.