mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-23 17:32:02 +01:00
doc: Add explanation of errors from Run (#327)
This commit is contained in:
parent
acc488b980
commit
bc29a6a355
1
run.go
1
run.go
@ -69,6 +69,7 @@ var theGraphicsContext atomic.Value
|
|||||||
// The given function f is guaranteed to be called 60 times a second
|
// The given function f is guaranteed to be called 60 times a second
|
||||||
// even if a rendering frame is skipped.
|
// even if a rendering frame is skipped.
|
||||||
// f is not called when the screen is not shown.
|
// f is not called when the screen is not shown.
|
||||||
|
// If f returns error, this function returns the same error.
|
||||||
//
|
//
|
||||||
// The size unit is device-independent pixel.
|
// The size unit is device-independent pixel.
|
||||||
func Run(f func(*Image) error, width, height int, scale float64, title string) error {
|
func Run(f func(*Image) error, width, height int, scale float64, title string) error {
|
||||||
|
Loading…
Reference in New Issue
Block a user