mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 20:18:59 +01:00
ebitenutil: Fix a comment
This commit is contained in:
parent
e30ef050f2
commit
134722f8f7
@ -27,7 +27,7 @@ import (
|
|||||||
// NewImageFromFile loads the file path and returns ebiten.Image and image.Image.
|
// NewImageFromFile loads the file path and returns ebiten.Image and image.Image.
|
||||||
//
|
//
|
||||||
// The current directory for path depends on your environment. This will vary on your desktop or web browser.
|
// The current directory for path depends on your environment. This will vary on your desktop or web browser.
|
||||||
// Note that this doesn't work on browsers.
|
// Note that this doesn't work on mobiles.
|
||||||
// It'll be safer to embed your resource, e.g., with github.com/jteeuwen/go-bindata instead of using this function.
|
// It'll be safer to embed your resource, e.g., with github.com/jteeuwen/go-bindata instead of using this function.
|
||||||
func NewImageFromFile(path string, filter ebiten.Filter) (*ebiten.Image, image.Image, error) {
|
func NewImageFromFile(path string, filter ebiten.Filter) (*ebiten.Image, image.Image, error) {
|
||||||
file, err := OpenFile(path)
|
file, err := OpenFile(path)
|
||||||
|
Loading…
Reference in New Issue
Block a user