mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-09-20 05:12:18 +02: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.
|
// How to solve path depends on your environment. This varies on your desktop or web browser.
|
||||||
// Note that this doesn't work on mobiles.
|
// 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) {
|
func NewImageFromFile(path string) (*ebiten.Image, image.Image, error) {
|
||||||
file, err := OpenFile(path)
|
file, err := OpenFile(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user