类 JImGuiFontAtlasGen
java.lang.Object
org.ice1000.jimgui.JImGuiFontAtlasGen
- 直接已知子类:
JImFontAtlas
- 从以下版本开始:
- v0.1
-
字段概要
字段 -
方法概要
修饰符和类型方法说明protected static voidaddCustomRectFontGlyph(long font, short id, int width, int height, float advanceX, float offsetX, float offsetY, long nativeObjectPtr)voidaddCustomRectFontGlyph(@NotNull JImFont font, short id, int width, int height, float advanceX)voidaddCustomRectFontGlyph(@NotNull JImFont font, short id, int width, int height, float advanceX, float offsetX, float offsetY)protected voidaddCustomRectFontGlyph(@NotNull JImFont font, short id, int width, int height, float advanceX, float offsetX, float offsetY, long nativeObjectPtr)voidaddCustomRectRegular(int width, int height)protected static longaddFont(long fontConfig, long nativeObjectPtr)longaddFont(@NotNull JImFontConfig fontConfig)protected longaddFont(@NotNull JImFontConfig fontConfig, long nativeObjectPtr)longprotected static longaddFontDefault(long fontConfig, long nativeObjectPtr)longaddFontDefault(@NotNull JImFontConfig fontConfig)protected longaddFontDefault(@NotNull JImFontConfig fontConfig, long nativeObjectPtr)protected static longaddFontFromMemoryCompressedBase85TTF(byte[] compressedFontDataBase85, float sizePixels, long nativeObjectPtr)longaddFontFromMemoryCompressedBase85TTF(@NotNull String compressedFontDataBase85, float sizePixels)%27compressed_font_data_base85%27+still+owned+by+caller.protected longaddFontFromMemoryCompressedBase85TTF(@NotNull String compressedFontDataBase85, float sizePixels, long nativeObjectPtr)%27compressed_font_data_base85%27+still+owned+by+caller.longaddFontFromMemoryCompressedBase85TTF(@NotNull JImStr compressedFontDataBase85, float sizePixels)%27compressed_font_data_base85%27+still+owned+by+caller.longaddFontFromMemoryCompressedBase85TTF(@NotNull JImStr compressedFontDataBase85, float sizePixels, long nativeObjectPtr)%27compressed_font_data_base85%27+still+owned+by+caller.booleanbuild()Build+pixels+data.voidclear()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.voidClear+output+font+data+%28glyphs+storage%2C+UV+coordinates%29.voidClear+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.voidClear+output+texture+data+%28CPU+side%29.intgetFlags()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++Not+exposed%0A++See+enum+ImGuiWindowFlags_%0A++Flags+after+some+patching+%28not+directly+same+as+provided+by+user%29.protected static intgetFlags(long nativeObjectPtr)longDefault+%2B+Half-Width+%2B+Japanese+Hiragana%7CKatakana+%2B+full+set+of+about+21000+CJK+Unified+Ideographsprotected static longgetGlyphRangesChineseFull(long nativeObjectPtr)Default+%2B+Half-Width+%2B+Japanese+Hiragana%7CKatakana+%2B+full+set+of+about+21000+CJK+Unified+IdeographslongDefault+%2B+Half-Width+%2B+Japanese+Hiragana%7CKatakana+%2B+set+of+2500+CJK+Unified+Ideographs+for+common+simplified+Chineseprotected static longgetGlyphRangesChineseSimplifiedCommon(long nativeObjectPtr)Default+%2B+Half-Width+%2B+Japanese+Hiragana%7CKatakana+%2B+set+of+2500+CJK+Unified+Ideographs+for+common+simplified+ChineselongDefault+%2B+about+400+Cyrillic+charactersprotected static longgetGlyphRangesCyrillic(long nativeObjectPtr)Default+%2B+about+400+Cyrillic+characterslongBasic+Latin%2C+Extended+Latinprotected static longgetGlyphRangesDefault(long nativeObjectPtr)Basic+Latin%2C+Extended+LatinlongDefault+%2B+Hiragana%2C+Katakana%2C+Half-Width%2C+Selection+of+2999+Ideographsprotected static longgetGlyphRangesJapanese(long nativeObjectPtr)Default+%2B+Hiragana%2C+Katakana%2C+Half-Width%2C+Selection+of+2999+IdeographslongDefault+%2B+Korean+charactersprotected static longgetGlyphRangesKorean(long nativeObjectPtr)Default+%2B+Korean+characterslongDefault+%2B+Thai+charactersprotected static longgetGlyphRangesThai(long nativeObjectPtr)Default+%2B+Thai+characterslongDefault+%2B+Vietnamese+charactersprotected static longgetGlyphRangesVietnamese(long nativeObjectPtr)Default+%2B+Vietnamese+charactersintTexture+width+desired+by+user+before+Build%28%29.protected static intgetTexDesiredWidth(long nativeObjectPtr)intPadding+between+glyphs+within+texture+in+pixels.protected static intgetTexGlyphPadding(long nativeObjectPtr)intTexture+height+calculated+during+Build%28%29.protected static intgetTexHeight(long nativeObjectPtr)floatfloatfloatTexture+coordinates+to+a+white+pixel%0A++UV+of+white+pixel+in+the+atlasfloatTexture+coordinates+to+a+white+pixel%0A++UV+of+white+pixel+in+the+atlasintTexture+width+calculated+during+Build%28%29.protected static intgetTexWidth(long nativeObjectPtr)booleanisBuilt()voidsetFlags(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++Not+exposed%0A++See+enum+ImGuiWindowFlags_%0A++Flags+after+some+patching+%28not+directly+same+as+provided+by+user%29.protected static voidsetFlags(long nativeObjectPtr, int newValue)voidsetTexDesiredWidth(int newValue)Texture+width+desired+by+user+before+Build%28%29.protected static voidsetTexDesiredWidth(long nativeObjectPtr, int newValue)voidsetTexGlyphPadding(int newValue)Padding+between+glyphs+within+texture+in+pixels.protected static voidsetTexGlyphPadding(long nativeObjectPtr, int newValue)voidsetTexHeight(int newValue)Texture+height+calculated+during+Build%28%29.protected static voidsetTexHeight(long nativeObjectPtr, int newValue)protected static voidsetTexID(long id, long nativeObjectPtr)voidsetTexID(@NotNull JImTextureID id)voidsetTexUvScaleX(float newValue)voidsetTexUvScaleY(float newValue)voidsetTexUvWhitePixelX(float newValue)Texture+coordinates+to+a+white+pixel%0A++UV+of+white+pixel+in+the+atlasvoidsetTexUvWhitePixelY(float newValue)Texture+coordinates+to+a+white+pixel%0A++UV+of+white+pixel+in+the+atlasvoidsetTexWidth(int newValue)Texture+width+calculated+during+Build%28%29.protected static voidsetTexWidth(long nativeObjectPtr, int newValue)
-
字段详细资料
-
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++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++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
-
addFont
protected static long addFont(long fontConfig, long nativeObjectPtr) -
addFont
-
addFontDefault
protected final long addFontDefault(@NotNull @NotNull JImFontConfig fontConfig, long nativeObjectPtr) -
addFontDefault
protected static long addFontDefault(long fontConfig, long nativeObjectPtr) -
addFontDefault
-
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() -
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
-
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)
-