Interface StbApi


public interface StbApi
  • Method Details

    • image_load_from_memory

      ByteBuffer image_load_from_memory(ByteBuffer buffer, int[] widthOutput, int[] heightOutput, int[] channelsOutput, int desiredChannels)
    • image_failure_reason

      String image_failure_reason()
    • image_free

      void image_free(ByteBuffer image)
    • image_write_png

      void image_write_png(String filename, int w, int h, int comp, ByteBuffer data, int strideInBytes)
    • font_CreateFontInfo

      StbApi.StbFontInfo font_CreateFontInfo()
    • font_CreatePackRange

      long font_CreatePackRange()
    • font_CreatePackedCharArray

      long font_CreatePackedCharArray(int capacity)
    • font_CreatePackContext

      long font_CreatePackContext()
    • font_InitFont

      boolean font_InitFont(StbApi.StbFontInfo info, ByteBuffer data)
    • font_FindGlyphIndex

      int font_FindGlyphIndex(StbApi.StbFontInfo info, int codepoint)
    • font_ScaleForMappingEmToPixels

      float font_ScaleForMappingEmToPixels(StbApi.StbFontInfo info, float pixels)
    • font_GetFontVMetrics

      void font_GetFontVMetrics(StbApi.StbFontInfo info, int[] ascent, int[] descent, int[] lineGap)
    • font_GetGlyphHMetrics

      void font_GetGlyphHMetrics(StbApi.StbFontInfo info, int glyphIndex, int[] advanceWidth, int[] leftSideBearing)
    • font_GetGlyphBitmap

      ByteBuffer font_GetGlyphBitmap(StbApi.StbFontInfo info, float scaleX, float scaleY, int glyphIndex, int[] w, int[] h, int[] x_off, int[] y_off)
    • font_GetGlyphSDF

      ByteBuffer font_GetGlyphSDF(StbApi.StbFontInfo info, float scale, int glyphIndex, int padding, byte onEdgeValue, float pixelDistScale, int[] w, int[] h, int[] x_off, int[] y_off)
    • font_PackBegin

      boolean font_PackBegin(long packCtx, ByteBuffer pixels, int width, int height, int strideInBytes, int padding, long allocCtx)
    • font_PackFontRange

      boolean font_PackFontRange(long packCtx, ByteBuffer fontData, int fontIndex, float fontSize, int firstUnicodeCodepointInRange, int numCharsInRange, long packedCharArray)
    • font_PackEnd

      void font_PackEnd(long packCtx)
    • font_RangeSetFontSize

      void font_RangeSetFontSize(long range, float size)
    • font_RangeSetFirstUnicodeCodepointInRange

      void font_RangeSetFirstUnicodeCodepointInRange(long range, int firstUnicodeCodepointInRange)
    • font_RangeSetNumChars

      void font_RangeSetNumChars(long range, int numCharsInRange)
    • font_RangeSetChardata

      void font_RangeSetChardata(long range, long packedCharArray)
    • font_GetPackedGlyph

      long font_GetPackedGlyph(long packedCharArray, int index)
    • glyph_x0

      short glyph_x0(long glyph)
    • glyph_y0

      short glyph_y0(long glyph)
    • glyph_x1

      short glyph_x1(long glyph)
    • glyph_y1

      short glyph_y1(long glyph)
    • glyph_xadvance

      float glyph_xadvance(long glyph)
    • glyph_xoff

      float glyph_xoff(long glyph)
    • glyph_yoff

      float glyph_yoff(long glyph)