Class NkConvertConfig

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • GLOBAL_ALPHA, LINE_AA, SHAPE_AA, CIRCLE_SEGMENT_COUNT, ARC_SEGMENT_COUNT, CURVE_SEGMENT_COUNT, NULL_TEXTURE, VERTEX_LAYOUT, VERTEX_SIZE, VERTEX_ALIGNMENT

        The struct member offsets.
    • Constructor Detail

      • NkConvertConfig

        public NkConvertConfig​(java.nio.ByteBuffer container)
        Creates a NkConvertConfig 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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • global_alpha

        public float global_alpha()
        global alpha value
      • circle_segment_count

        public int circle_segment_count()
        number of segments used for circles: default to 22
      • arc_segment_count

        public int arc_segment_count()
        number of segments used for arcs: default to 22
      • curve_segment_count

        public int curve_segment_count()
        number of segments used for curves: default to 22
      • null_texture

        public NkDrawNullTexture null_texture()
        handle to texture with a white pixel for shape drawing
      • vertex_layout

        public NkDrawVertexLayoutElement.Buffer vertex_layout​(int capacity)
        Parameters:
        capacity - the number of elements in the returned buffer
        Returns:
        describes the vertex output format and packing
      • vertex_size

        public long vertex_size()
        sizeof one vertex for vertex packing
      • vertex_alignment

        public long vertex_alignment()
        vertex alignment: Can be optained by NK_ALIGNOF
      • set

        public NkConvertConfig set​(float global_alpha,
                                   int line_AA,
                                   int shape_AA,
                                   int circle_segment_count,
                                   int arc_segment_count,
                                   int curve_segment_count,
                                   NkDrawNullTexture null_texture,
                                   NkDrawVertexLayoutElement.Buffer vertex_layout,
                                   long vertex_size,
                                   long vertex_alignment)
        Initializes this struct with the specified values.
      • set

        public NkConvertConfig set​(NkConvertConfig src)
        Copies the specified struct data to this struct.
        Parameters:
        src - the source struct
        Returns:
        this struct
      • malloc

        public static NkConvertConfig malloc()
        Returns a new NkConvertConfig instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static NkConvertConfig calloc()
        Returns a new NkConvertConfig instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static NkConvertConfig create()
        Returns a new NkConvertConfig instance allocated with BufferUtils.
      • create

        public static NkConvertConfig create​(long address)
        Returns a new NkConvertConfig instance for the specified memory address.
      • createSafe

        @Nullable
        public static NkConvertConfig createSafe​(long address)
        Like create, but returns null if address is NULL.
      • malloc

        public static NkConvertConfig.Buffer malloc​(int capacity)
        Returns a new NkConvertConfig.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
        Parameters:
        capacity - the buffer capacity
      • calloc

        public static NkConvertConfig.Buffer calloc​(int capacity)
        Returns a new NkConvertConfig.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
        Parameters:
        capacity - the buffer capacity
      • create

        public static NkConvertConfig.Buffer create​(long address,
                                                    int capacity)
        Create a NkConvertConfig.Buffer instance at the specified memory.
        Parameters:
        address - the memory address
        capacity - the buffer capacity
      • createSafe

        @Nullable
        public static NkConvertConfig.Buffer createSafe​(long address,
                                                        int capacity)
        Like create, but returns null if address is NULL.
      • mallocStack

        @Deprecated
        public static NkConvertConfig mallocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
      • callocStack

        @Deprecated
        public static NkConvertConfig callocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
      • malloc

        public static NkConvertConfig malloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new NkConvertConfig instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static NkConvertConfig calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new NkConvertConfig instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • malloc

        public static NkConvertConfig.Buffer malloc​(int capacity,
                                                    org.lwjgl.system.MemoryStack stack)
        Returns a new NkConvertConfig.Buffer instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • calloc

        public static NkConvertConfig.Buffer calloc​(int capacity,
                                                    org.lwjgl.system.MemoryStack stack)
        Returns a new NkConvertConfig.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • nglobal_alpha

        public static float nglobal_alpha​(long struct)
        Unsafe version of global_alpha().
      • nline_AA

        public static int nline_AA​(long struct)
        Unsafe version of line_AA().
      • nshape_AA

        public static int nshape_AA​(long struct)
        Unsafe version of shape_AA().
      • ncircle_segment_count

        public static int ncircle_segment_count​(long struct)
        Unsafe version of circle_segment_count().
      • narc_segment_count

        public static int narc_segment_count​(long struct)
        Unsafe version of arc_segment_count().
      • ncurve_segment_count

        public static int ncurve_segment_count​(long struct)
        Unsafe version of curve_segment_count().
      • nvertex_size

        public static long nvertex_size​(long struct)
        Unsafe version of vertex_size().
      • nvertex_alignment

        public static long nvertex_alignment​(long struct)
        Unsafe version of vertex_alignment().
      • nglobal_alpha

        public static void nglobal_alpha​(long struct,
                                         float value)
        Unsafe version of global_alpha.
      • nline_AA

        public static void nline_AA​(long struct,
                                    int value)
        Unsafe version of line_AA.
      • nshape_AA

        public static void nshape_AA​(long struct,
                                     int value)
        Unsafe version of shape_AA.
      • ncircle_segment_count

        public static void ncircle_segment_count​(long struct,
                                                 int value)
        Unsafe version of circle_segment_count.
      • narc_segment_count

        public static void narc_segment_count​(long struct,
                                              int value)
        Unsafe version of arc_segment_count.
      • ncurve_segment_count

        public static void ncurve_segment_count​(long struct,
                                                int value)
        Unsafe version of curve_segment_count.
      • nvertex_size

        public static void nvertex_size​(long struct,
                                        long value)
        Unsafe version of vertex_size.
      • nvertex_alignment

        public static void nvertex_alignment​(long struct,
                                             long value)
        Unsafe version of vertex_alignment.
      • validate

        public static void validate​(long struct)
        Validates pointer members that should not be NULL.
        Parameters:
        struct - the struct to validate