mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
ebitenutil: Update the doc
This commit is contained in:
parent
0247261d34
commit
c0e12450df
@ -32,7 +32,7 @@ import (
|
||||
// How to solve path depends on your environment. This varies on your desktop or web browser.
|
||||
// Note that this doesn't work on mobiles.
|
||||
//
|
||||
// For productions, instead of using NewImageFromFile, it is safer to embed your resources, e.g., with github.com/rakyll/statik .
|
||||
// For productions, instead of using NewImageFromFile, it is safer to embed your resources with go:embed.
|
||||
func NewImageFromFile(path string) (*ebiten.Image, image.Image, error) {
|
||||
file, err := OpenFile(path)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user