mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
text: Update doc
This commit is contained in:
parent
b198ad9343
commit
b42f417e3b
@ -253,13 +253,13 @@ var textM sync.Mutex
|
||||
// Draw draws a given text on a give destination image dst.
|
||||
//
|
||||
// face is the font for text rendering.
|
||||
//
|
||||
// (x, y) represents a 'dot' position. Be careful that this doesn't represent left-upper corner position.
|
||||
//
|
||||
// lineHeight is the Y offset for line spacing.
|
||||
//
|
||||
// clr is the color for text rendering.
|
||||
//
|
||||
// Glyphs used to render are cached in least-recently-used way.
|
||||
// It is OK to call this function with a same text and a same face at every frame.
|
||||
//
|
||||
// This function is concurrent-safe.
|
||||
func Draw(dst *ebiten.Image, face font.Face, text string, x, y int, lineHeight int, clr color.Color) {
|
||||
textM.Lock()
|
||||
|
Loading…
Reference in New Issue
Block a user