mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-10 10:03:17 +01:00
text: Update comments
This commit is contained in:
parent
3df31c0fce
commit
4f6ad4e60b
@ -276,7 +276,7 @@ func BoundString(face font.Face, text string) image.Rectangle {
|
|||||||
// explicitly. However, for example, when you call Draw for each rune of one big text, Draw tries to create the glyph
|
// explicitly. However, for example, when you call Draw for each rune of one big text, Draw tries to create the glyph
|
||||||
// cache and render it for each rune. This is very inefficient because creating a glyph image and rendering it are
|
// cache and render it for each rune. This is very inefficient because creating a glyph image and rendering it are
|
||||||
// different operations and can never be merged as one draw call. CacheGlyphs creates necessary glyphs without
|
// different operations and can never be merged as one draw call. CacheGlyphs creates necessary glyphs without
|
||||||
// rendering them so that these operations are likely merged into one draw call.
|
// rendering them so that these operations are likely merged into one draw call regardless of the size of the text.
|
||||||
//
|
//
|
||||||
// If a rune's glyph is already cached, CacheGlyphs does nothing for the rune.
|
// If a rune's glyph is already cached, CacheGlyphs does nothing for the rune.
|
||||||
func CacheGlyphs(face font.Face, text string) {
|
func CacheGlyphs(face font.Face, text string) {
|
||||||
|
Loading…
Reference in New Issue
Block a user