Package org.lwjgl.sdl

Class SDL_Vertex

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class SDL_Vertex extends Struct<SDL_Vertex> implements NativeResource

 struct SDL_Vertex {
     {@link SDL_FPoint SDL_FPoint} position;
     {@link SDL_FColor SDL_FColor} color;
     {@link SDL_FPoint SDL_FPoint} tex_coord;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • POSITION

      public static final int POSITION
      The struct member offsets.
    • COLOR

      public static final int COLOR
      The struct member offsets.
    • TEX_COORD

      public static final int TEX_COORD
      The struct member offsets.
  • Constructor Details

    • SDL_Vertex

      public SDL_Vertex(ByteBuffer container)
      Creates a SDL_Vertex instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

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

  • Method Details