类 JImGuiFontAtlasGen

java.lang.Object
org.ice1000.jimgui.JImGuiFontAtlasGen
直接已知子类:
JImFontAtlas

public class JImGuiFontAtlasGen extends Object
从以下版本开始:
v0.1
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    protected long
     
  • 方法概要

    修饰符和类型
    方法
    说明
    protected static void
    addCustomRectFontGlyph(long font, short id, int width, int height, float advanceX, float offsetX, float offsetY, long nativeObjectPtr)
     
    final void
    addCustomRectFontGlyph(@NotNull JImFont font, short id, int width, int height, float advanceX)
     
    final void
    addCustomRectFontGlyph(@NotNull JImFont font, short id, int width, int height, float advanceX, float offsetX, float offsetY)
     
    protected final void
    addCustomRectFontGlyph(@NotNull JImFont font, short id, int width, int height, float advanceX, float offsetX, float offsetY, long nativeObjectPtr)
     
    final void
    addCustomRectRegular(int width, int height)
     
    protected static long
    addFont(long fontConfig, long nativeObjectPtr)
     
    final long
    addFont(@NotNull JImFontConfig fontConfig)
     
    protected final long
    addFont(@NotNull JImFontConfig fontConfig, long nativeObjectPtr)
     
    final long
     
    protected static long
    addFontDefault(long fontConfig, long nativeObjectPtr)
     
    final long
    addFontDefault(@NotNull JImFontConfig fontConfig)
     
    protected final long
    addFontDefault(@NotNull JImFontConfig fontConfig, long nativeObjectPtr)
     
    protected static long
    addFontFromMemoryCompressedBase85TTF(byte[] compressedFontDataBase85, float sizePixels, long nativeObjectPtr)
     
    final long
    addFontFromMemoryCompressedBase85TTF(@NotNull String compressedFontDataBase85, float sizePixels)
    %27compressed_font_data_base85%27+still+owned+by+caller.
    protected final long
    addFontFromMemoryCompressedBase85TTF(@NotNull String compressedFontDataBase85, float sizePixels, long nativeObjectPtr)
    %27compressed_font_data_base85%27+still+owned+by+caller.
    final long
    addFontFromMemoryCompressedBase85TTF(@NotNull JImStr compressedFontDataBase85, float sizePixels)
    %27compressed_font_data_base85%27+still+owned+by+caller.
    final long
    addFontFromMemoryCompressedBase85TTF(@NotNull JImStr compressedFontDataBase85, float sizePixels, long nativeObjectPtr)
    %27compressed_font_data_base85%27+still+owned+by+caller.
    final boolean
    Build+pixels+data.
    final void
    Do+not+clear+Channels%5B%5D+so+our+allocations+are+reused+next+frame%0A++The+ImDrawList+are+owned+by+ImGuiContext%21%0A++Clear+all+input+and+output.
    final void
    Clear+output+font+data+%28glyphs+storage%2C+UV+coordinates%29.
    final void
    Clear+input+data+%28all+ImFontConfig+structures+including+sizes%2C+TTF+data%2C+glyph+ranges%2C+etc.%29+%3D+all+the+data+used+to+build+the+texture+and+fonts.
    final void
    Clear+output+texture+data+%28CPU+side%29.
    int
    What+user+passed+to+InputText%28%29++++++%7C%7C+Read-only%0A++Flags%2C+you+may+poke+into+these+to+adjust+anti-aliasing+settings+per-primitive.%0A++Build+flags+%28see+ImFontAtlasFlags_%29%0A++See+ImGuiViewportFlags_%0A++copy+of+InputText%28%29+flags%0A++Not+exposed%0A++See+enum+ImGuiWindowFlags_%0A++Flags+after+some+patching+%28not+directly+same+as+provided+by+user%29.
    protected static int
    getFlags(long nativeObjectPtr)
     
    final long
    Default+%2B+Half-Width+%2B+Japanese+Hiragana%7CKatakana+%2B+full+set+of+about+21000+CJK+Unified+Ideographs
    protected static long
    getGlyphRangesChineseFull(long nativeObjectPtr)
    Default+%2B+Half-Width+%2B+Japanese+Hiragana%7CKatakana+%2B+full+set+of+about+21000+CJK+Unified+Ideographs
    final long
    Default+%2B+Half-Width+%2B+Japanese+Hiragana%7CKatakana+%2B+set+of+2500+CJK+Unified+Ideographs+for+common+simplified+Chinese
    protected static long
    Default+%2B+Half-Width+%2B+Japanese+Hiragana%7CKatakana+%2B+set+of+2500+CJK+Unified+Ideographs+for+common+simplified+Chinese
    final long
    Default+%2B+about+400+Cyrillic+characters
    protected static long
    getGlyphRangesCyrillic(long nativeObjectPtr)
    Default+%2B+about+400+Cyrillic+characters
    final long
    Basic+Latin%2C+Extended+Latin
    protected static long
    getGlyphRangesDefault(long nativeObjectPtr)
    Basic+Latin%2C+Extended+Latin
    final long
    Default+%2B+Hiragana%2C+Katakana%2C+Half-Width%2C+Selection+of+2999+Ideographs
    protected static long
    getGlyphRangesJapanese(long nativeObjectPtr)
    Default+%2B+Hiragana%2C+Katakana%2C+Half-Width%2C+Selection+of+2999+Ideographs
    final long
    Default+%2B+Korean+characters
    protected static long
    getGlyphRangesKorean(long nativeObjectPtr)
    Default+%2B+Korean+characters
    final long
    Default+%2B+Thai+characters
    protected static long
    getGlyphRangesThai(long nativeObjectPtr)
    Default+%2B+Thai+characters
    final long
    Default+%2B+Vietnamese+characters
    protected static long
    getGlyphRangesVietnamese(long nativeObjectPtr)
    Default+%2B+Vietnamese+characters
    int
    Texture+width+desired+by+user+before+Build%28%29.
    protected static int
    getTexDesiredWidth(long nativeObjectPtr)
     
    int
    Padding+between+glyphs+within+texture+in+pixels.
    protected static int
    getTexGlyphPadding(long nativeObjectPtr)
     
    int
    Texture+height+calculated+during+Build%28%29.
    protected static int
    getTexHeight(long nativeObjectPtr)
     
    float
     
    float
     
    float
    Texture+coordinates+to+a+white+pixel%0A++UV+of+white+pixel+in+the+atlas
    float
    Texture+coordinates+to+a+white+pixel%0A++UV+of+white+pixel+in+the+atlas
    int
    Texture+width+calculated+during+Build%28%29.
    protected static int
    getTexWidth(long nativeObjectPtr)
     
    final boolean
    Bit+ambiguous%3A+used+to+detect+when+user+didn%27t+built+texture+but+effectively+we+should+check+TexID+%21%3D+0+except+that+would+be+backend+dependent...
    void
    setFlags(int newValue)
    What+user+passed+to+InputText%28%29++++++%7C%7C+Read-only%0A++Flags%2C+you+may+poke+into+these+to+adjust+anti-aliasing+settings+per-primitive.%0A++Build+flags+%28see+ImFontAtlasFlags_%29%0A++See+ImGuiViewportFlags_%0A++copy+of+InputText%28%29+flags%0A++Not+exposed%0A++See+enum+ImGuiWindowFlags_%0A++Flags+after+some+patching+%28not+directly+same+as+provided+by+user%29.
    protected static void
    setFlags(long nativeObjectPtr, int newValue)
     
    void
    setTexDesiredWidth(int newValue)
    Texture+width+desired+by+user+before+Build%28%29.
    protected static void
    setTexDesiredWidth(long nativeObjectPtr, int newValue)
     
    void
    setTexGlyphPadding(int newValue)
    Padding+between+glyphs+within+texture+in+pixels.
    protected static void
    setTexGlyphPadding(long nativeObjectPtr, int newValue)
     
    void
    setTexHeight(int newValue)
    Texture+height+calculated+during+Build%28%29.
    protected static void
    setTexHeight(long nativeObjectPtr, int newValue)
     
    protected static void
    setTexID(long id, long nativeObjectPtr)
     
    final void
    setTexID(@NotNull JImTextureID id)
     
    void
    setTexUvScaleX(float newValue)
     
    void
    setTexUvScaleY(float newValue)
     
    void
    setTexUvWhitePixelX(float newValue)
    Texture+coordinates+to+a+white+pixel%0A++UV+of+white+pixel+in+the+atlas
    void
    setTexUvWhitePixelY(float newValue)
    Texture+coordinates+to+a+white+pixel%0A++UV+of+white+pixel+in+the+atlas
    void
    setTexWidth(int newValue)
    Texture+width+calculated+during+Build%28%29.
    protected static void
    setTexWidth(long nativeObjectPtr, int newValue)
     

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • nativeObjectPtr

      protected long nativeObjectPtr
  • 方法详细资料

    • setTexUvScaleX

      public void setTexUvScaleX(float newValue)
    • getTexUvScaleX

      public float getTexUvScaleX()
    • setTexUvScaleY

      public void setTexUvScaleY(float newValue)
    • getTexUvScaleY

      public float getTexUvScaleY()
    • setTexUvWhitePixelX

      public void setTexUvWhitePixelX(float newValue)
      Texture+coordinates+to+a+white+pixel%0A++UV+of+white+pixel+in+the+atlas
    • getTexUvWhitePixelX

      public float getTexUvWhitePixelX()
      Texture+coordinates+to+a+white+pixel%0A++UV+of+white+pixel+in+the+atlas
    • setTexUvWhitePixelY

      public void setTexUvWhitePixelY(float newValue)
      Texture+coordinates+to+a+white+pixel%0A++UV+of+white+pixel+in+the+atlas
    • getTexUvWhitePixelY

      public float getTexUvWhitePixelY()
      Texture+coordinates+to+a+white+pixel%0A++UV+of+white+pixel+in+the+atlas
    • getFlags

      public int getFlags()
      What+user+passed+to+InputText%28%29++++++%7C%7C+Read-only%0A++Flags%2C+you+may+poke+into+these+to+adjust+anti-aliasing+settings+per-primitive.%0A++Build+flags+%28see+ImFontAtlasFlags_%29%0A++See+ImGuiViewportFlags_%0A++copy+of+InputText%28%29+flags%0A++Not+exposed%0A++See+enum+ImGuiWindowFlags_%0A++Flags+after+some+patching+%28not+directly+same+as+provided+by+user%29.+See+ImGuiTableColumnFlags_
    • getFlags

      protected static int getFlags(long nativeObjectPtr)
    • setFlags

      public void setFlags(int newValue)
      What+user+passed+to+InputText%28%29++++++%7C%7C+Read-only%0A++Flags%2C+you+may+poke+into+these+to+adjust+anti-aliasing+settings+per-primitive.%0A++Build+flags+%28see+ImFontAtlasFlags_%29%0A++See+ImGuiViewportFlags_%0A++copy+of+InputText%28%29+flags%0A++Not+exposed%0A++See+enum+ImGuiWindowFlags_%0A++Flags+after+some+patching+%28not+directly+same+as+provided+by+user%29.+See+ImGuiTableColumnFlags_
    • setFlags

      protected static void setFlags(long nativeObjectPtr, int newValue)
    • getTexWidth

      public int getTexWidth()
      Texture+width+calculated+during+Build%28%29.
    • getTexWidth

      protected static int getTexWidth(long nativeObjectPtr)
    • setTexWidth

      public void setTexWidth(int newValue)
      Texture+width+calculated+during+Build%28%29.
    • setTexWidth

      protected static void setTexWidth(long nativeObjectPtr, int newValue)
    • getTexHeight

      public int getTexHeight()
      Texture+height+calculated+during+Build%28%29.
    • getTexHeight

      protected static int getTexHeight(long nativeObjectPtr)
    • setTexHeight

      public void setTexHeight(int newValue)
      Texture+height+calculated+during+Build%28%29.
    • setTexHeight

      protected static void setTexHeight(long nativeObjectPtr, int newValue)
    • getTexDesiredWidth

      public int getTexDesiredWidth()
      Texture+width+desired+by+user+before+Build%28%29.+Must+be+a+power-of-two.+If+have+many+glyphs+your+graphics+API+have+texture+size+restrictions+you+may+want+to+increase+texture+width+to+decrease+height.
    • getTexDesiredWidth

      protected static int getTexDesiredWidth(long nativeObjectPtr)
    • setTexDesiredWidth

      public void setTexDesiredWidth(int newValue)
      Texture+width+desired+by+user+before+Build%28%29.+Must+be+a+power-of-two.+If+have+many+glyphs+your+graphics+API+have+texture+size+restrictions+you+may+want+to+increase+texture+width+to+decrease+height.
    • setTexDesiredWidth

      protected static void setTexDesiredWidth(long nativeObjectPtr, int newValue)
    • getTexGlyphPadding

      public int getTexGlyphPadding()
      Padding+between+glyphs+within+texture+in+pixels.+Defaults+to+1.+If+your+rendering+method+doesn%27t+rely+on+bilinear+filtering+you+may+set+this+to+0.
    • getTexGlyphPadding

      protected static int getTexGlyphPadding(long nativeObjectPtr)
    • setTexGlyphPadding

      public void setTexGlyphPadding(int newValue)
      Padding+between+glyphs+within+texture+in+pixels.+Defaults+to+1.+If+your+rendering+method+doesn%27t+rely+on+bilinear+filtering+you+may+set+this+to+0.
    • setTexGlyphPadding

      protected static void setTexGlyphPadding(long nativeObjectPtr, int newValue)
    • addFont

      protected final long addFont(@NotNull @NotNull JImFontConfig fontConfig, long nativeObjectPtr)
    • addFont

      protected static long addFont(long fontConfig, long nativeObjectPtr)
    • addFont

      public final long addFont(@NotNull @NotNull JImFontConfig fontConfig)
    • addFontDefault

      protected final long addFontDefault(@NotNull @NotNull JImFontConfig fontConfig, long nativeObjectPtr)
    • addFontDefault

      protected static long addFontDefault(long fontConfig, long nativeObjectPtr)
    • addFontDefault

      public final long addFontDefault(@NotNull @NotNull JImFontConfig fontConfig)
    • addFontDefault

      public final long addFontDefault()
    • addFontFromMemoryCompressedBase85TTF

      protected final long addFontFromMemoryCompressedBase85TTF(@NotNull @NotNull String compressedFontDataBase85, float sizePixels, long nativeObjectPtr)
      %27compressed_font_data_base85%27+still+owned+by+caller.+Compress+with+binary_to_compressed_c.cpp+with+-base85+parameter.
    • addFontFromMemoryCompressedBase85TTF

      public final long addFontFromMemoryCompressedBase85TTF(@NotNull @NotNull JImStr compressedFontDataBase85, float sizePixels, long nativeObjectPtr)
      %27compressed_font_data_base85%27+still+owned+by+caller.+Compress+with+binary_to_compressed_c.cpp+with+-base85+parameter.
    • addFontFromMemoryCompressedBase85TTF

      protected static long addFontFromMemoryCompressedBase85TTF(byte[] compressedFontDataBase85, float sizePixels, long nativeObjectPtr)
    • addFontFromMemoryCompressedBase85TTF

      public final long addFontFromMemoryCompressedBase85TTF(@NotNull @NotNull String compressedFontDataBase85, float sizePixels)
      %27compressed_font_data_base85%27+still+owned+by+caller.+Compress+with+binary_to_compressed_c.cpp+with+-base85+parameter.
    • addFontFromMemoryCompressedBase85TTF

      public final long addFontFromMemoryCompressedBase85TTF(@NotNull @NotNull JImStr compressedFontDataBase85, float sizePixels)
      %27compressed_font_data_base85%27+still+owned+by+caller.+Compress+with+binary_to_compressed_c.cpp+with+-base85+parameter.
    • build

      public final boolean build()
      Build+pixels+data.+This+is+called+automatically+for+you+by+the+GetTexData***+functions.
    • isBuilt

      public final boolean isBuilt()
      Bit+ambiguous%3A+used+to+detect+when+user+didn%27t+built+texture+but+effectively+we+should+check+TexID+%21%3D+0+except+that+would+be+backend+dependent...
    • clearInputData

      public final void clearInputData()
      Clear+input+data+%28all+ImFontConfig+structures+including+sizes%2C+TTF+data%2C+glyph+ranges%2C+etc.%29+%3D+all+the+data+used+to+build+the+texture+and+fonts.
    • clearTexData

      public final void clearTexData()
      Clear+output+texture+data+%28CPU+side%29.+Saves+RAM+once+the+texture+has+been+copied+to+graphics+memory.
    • clearFonts

      public final void clearFonts()
      Clear+output+font+data+%28glyphs+storage%2C+UV+coordinates%29.
    • clear

      public final void clear()
      Do+not+clear+Channels%5B%5D+so+our+allocations+are+reused+next+frame%0A++The+ImDrawList+are+owned+by+ImGuiContext%21%0A++Clear+all+input+and+output.
    • setTexID

      protected static void setTexID(long id, long nativeObjectPtr)
    • setTexID

      public final void setTexID(@NotNull @NotNull JImTextureID id)
    • getGlyphRangesDefault

      protected static long getGlyphRangesDefault(long nativeObjectPtr)
      Basic+Latin%2C+Extended+Latin
    • getGlyphRangesDefault

      public final long getGlyphRangesDefault()
      Basic+Latin%2C+Extended+Latin
    • getGlyphRangesKorean

      protected static long getGlyphRangesKorean(long nativeObjectPtr)
      Default+%2B+Korean+characters
    • getGlyphRangesKorean

      public final long getGlyphRangesKorean()
      Default+%2B+Korean+characters
    • getGlyphRangesJapanese

      protected static long getGlyphRangesJapanese(long nativeObjectPtr)
      Default+%2B+Hiragana%2C+Katakana%2C+Half-Width%2C+Selection+of+2999+Ideographs
    • getGlyphRangesJapanese

      public final long getGlyphRangesJapanese()
      Default+%2B+Hiragana%2C+Katakana%2C+Half-Width%2C+Selection+of+2999+Ideographs
    • getGlyphRangesChineseFull

      protected static long getGlyphRangesChineseFull(long nativeObjectPtr)
      Default+%2B+Half-Width+%2B+Japanese+Hiragana%7CKatakana+%2B+full+set+of+about+21000+CJK+Unified+Ideographs
    • getGlyphRangesChineseFull

      public final long getGlyphRangesChineseFull()
      Default+%2B+Half-Width+%2B+Japanese+Hiragana%7CKatakana+%2B+full+set+of+about+21000+CJK+Unified+Ideographs
    • getGlyphRangesChineseSimplifiedCommon

      protected static long getGlyphRangesChineseSimplifiedCommon(long nativeObjectPtr)
      Default+%2B+Half-Width+%2B+Japanese+Hiragana%7CKatakana+%2B+set+of+2500+CJK+Unified+Ideographs+for+common+simplified+Chinese
    • getGlyphRangesChineseSimplifiedCommon

      public final long getGlyphRangesChineseSimplifiedCommon()
      Default+%2B+Half-Width+%2B+Japanese+Hiragana%7CKatakana+%2B+set+of+2500+CJK+Unified+Ideographs+for+common+simplified+Chinese
    • getGlyphRangesCyrillic

      protected static long getGlyphRangesCyrillic(long nativeObjectPtr)
      Default+%2B+about+400+Cyrillic+characters
    • getGlyphRangesCyrillic

      public final long getGlyphRangesCyrillic()
      Default+%2B+about+400+Cyrillic+characters
    • getGlyphRangesVietnamese

      protected static long getGlyphRangesVietnamese(long nativeObjectPtr)
      Default+%2B+Vietnamese+characters
    • getGlyphRangesVietnamese

      public final long getGlyphRangesVietnamese()
      Default+%2B+Vietnamese+characters
    • getGlyphRangesThai

      protected static long getGlyphRangesThai(long nativeObjectPtr)
      Default+%2B+Thai+characters
    • getGlyphRangesThai

      public final long getGlyphRangesThai()
      Default+%2B+Thai+characters
    • addCustomRectRegular

      public final void addCustomRectRegular(int width, int height)
    • addCustomRectFontGlyph

      protected final void addCustomRectFontGlyph(@NotNull @NotNull JImFont font, short id, int width, int height, float advanceX, float offsetX, float offsetY, long nativeObjectPtr)
    • addCustomRectFontGlyph

      protected static void addCustomRectFontGlyph(long font, short id, int width, int height, float advanceX, float offsetX, float offsetY, long nativeObjectPtr)
    • addCustomRectFontGlyph

      public final void addCustomRectFontGlyph(@NotNull @NotNull JImFont font, short id, int width, int height, float advanceX, float offsetX, float offsetY)
    • addCustomRectFontGlyph

      public final void addCustomRectFontGlyph(@NotNull @NotNull JImFont font, short id, int width, int height, float advanceX)