Allow texture loading from in-mem images

This commit is contained in:
bloeys
2022-07-02 22:54:36 +04:00
parent fe2aef6b6d
commit 2690014fc5
3 changed files with 65 additions and 5 deletions

View File

@ -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)
}