Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
TexturePack.new() duplicate — Gideros Forum

Comments

  • EricCarrEricCarr Member
    edited May 2016
    (Deleted duplicate reply)
  • EricCarrEricCarr Member
    edited May 2016
    It looks like two different overloads.

    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."
  • totebototebo Member
    That's a great answer, thanks! I also use one bitmap, and I didn't realise there was another option. You learn something new every day with Gideros.
    My Gideros games: www.totebo.com
  • SinisterSoftSinisterSoft Maintainer
    It would be good if there was an option to add a rendertexture to a texturepack...

    Likes: antix

    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
    +1 -1 (+1 / -0 )Share on Facebook
Sign In or Register to comment.