From f5a283effdae6e4268b8242cc9c30612ae79c436 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Mon, 12 Feb 2018 23:54:31 +0900 Subject: [PATCH] ebitenutil: Add comments --- ebitenutil/loadimage.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ebitenutil/loadimage.go b/ebitenutil/loadimage.go index 92b7ae8fc..84b722dfe 100644 --- a/ebitenutil/loadimage.go +++ b/ebitenutil/loadimage.go @@ -26,6 +26,9 @@ import ( // NewImageFromFile loads the file with path and returns ebiten.Image and image.Image. // +// Image decoders must be imported when using this function. For example, +// if you want to load a PNG image, you'd need to add `_ "image/png"` to the import section. +// // How to solve path depends on your environment. This varies on your desktop or web browser. // Note that this doesn't work on mobiles. //