Either you can create a texture file using the gideros texture packer and load it (this is what I do), or you can specify a list of images {"file1.png", "file2.png"} and it will combine them all into a single texture in memory.
The point of using a single "texture" that contains multiple images is for performance. It is faster to tell openGL "use this section of a texture" than to say "switch to texture 1 and display it."
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
Comments
Either you can create a texture file using the gideros texture packer and load it (this is what I do), or you can specify a list of images {"file1.png", "file2.png"} and it will combine them all into a single texture in memory.
The point of using a single "texture" that contains multiple images is for performance. It is faster to tell openGL "use this section of a texture" than to say "switch to texture 1 and display it."
Likes: antix
https://deluxepixel.com