I've googled this but can't seem to find anything on "concatenating" two images, especially with libgdx.

Any ideas?

  • 1
    \$\begingroup\$ so you basically want to create another image from two images ? \$\endgroup\$
    – Raxvan
    Apr 16, 2014 at 13:08
  • \$\begingroup\$ Yes, that is correct. \$\endgroup\$
    – VictorB
    Apr 16, 2014 at 14:06

1 Answer 1


Do something like this:

  1. Create a rendertarget
  2. Set it to be the target for drawing
  3. Draw image one to it.
  4. Draw image two to it.
  5. Save this render target, holding the combined images.
  6. Set the backbuffer as drawing target.

This question presents the same problem and its solutions should work flawlessly also for your use-case. Just draw your textures with the spritebatch, enabling the framebuffer object created before.

It's easy to Google for details on this...


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .