Load texture from res folder

This commit is contained in:
bloeys
2022-02-05 23:59:41 +04:00
parent 8e96cf7050
commit 50c2ab650f
4 changed files with 13 additions and 18 deletions

View File

@ -24,7 +24,7 @@ type Texture struct {
Pixels []byte
}
func LoadPNG(file string) (Texture, error) {
func LoadPNGTexture(file string) (Texture, error) {
if tex, ok := GetTexturePath(file); ok {
return tex, nil