mirror of
https://github.com/bloeys/nmage.git
synced 2025-12-29 13:28:20 +00:00
Allow texture loading from in-mem images
This commit is contained in:
2
main.go
2
main.go
@ -66,7 +66,7 @@ func (g *OurGame) Init() {
|
||||
}
|
||||
|
||||
//Load textures
|
||||
tex, err := assets.LoadPNGTexture("./res/textures/Low poly planet.png", nil)
|
||||
tex, err := assets.LoadTexturePNG("./res/textures/Low poly planet.png", nil)
|
||||
if err != nil {
|
||||
logging.ErrLog.Fatalln("Failed to load texture. Err: ", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user