mirror of
https://github.com/bloeys/nmage.git
synced 2025-12-29 05:18:21 +00:00
Load texture from res folder
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user