0
\$\begingroup\$

Im currently using LibGDX and drawing a tiledmap with the OrthogonalTiledMapRenderer. Is there a way to save one rendering and put it into some file as an image? If you know of a method that doesnt use OrthogonalTiledMapRenderer, thats ok too.

\$\endgroup\$

1 Answer 1

0
\$\begingroup\$

Try this:

https://github.com/libgdx/libgdx/wiki/Taking-a-Screenshot

You might also want to try FrameBufferObjects

https://github.com/mattdesl/lwjgl-basics/wiki/FrameBufferObjects

(Note the link near the top of this article to the LibGDX version)

Good luck!

\$\endgroup\$
1
  • 2
    \$\begingroup\$ Usually link-only answers do not age well, which makes them not ideal. It would be better if together with the link you also provided some information of how it works, or some minimum steps to achieve the desired results with something like "Click here for more complicated examples" at the end. Keep in mind the future users that might encounter the same problem and find this question :) \$\endgroup\$ Aug 19, 2019 at 14:04

You must log in to answer this question.

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