How to load Pixmap/Texture into AssetManager?

337
September 08, 2017, at 03:18 AM

I've come across those articles: https://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/assets/AssetManager.html http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/assets/loaders/PixmapLoader.html http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/assets/loaders/TextureLoader.html https://github.com/libgdx/libgdx/wiki/Managing-your-assets

And I still didn't find anything about how to load a Texture into the AssetManager. In my game I create a Pixmap and wrap it around a Texture. Then I dispose the Pixmap. Then I draw the Texture with SpriteBatch. Every Texture created in my game has been created by a Pixmap, so it's created in runtime. How do I load those Textures into the AssetManager?

The links above and everything I've come across only show how to load Textures from already available files.

Rent Charter Buses Company
READ ALSO
Close intent to navigate google and return to my application

Close intent to navigate google and return to my application

I am trying to make an android application, with a button I call google navigation and it works correctly, and my question is: somehow I can close the navigation of google once finished and return to my application?

360
Java Swing revalidate() vs repaint()

Java Swing revalidate() vs repaint()

I'm putting together a Swing application where I often want to replace the contents of a JPanelTo do this, I'm calling removeAll(), then adding my new content, then calling revalidate()

466
How should I store data (for in-app usage)? [duplicate]

How should I store data (for in-app usage)? [duplicate]

This question already has an answer here:

275
Correct way to make intellisense to work in Intellij with Liferay plugins?

Correct way to make intellisense to work in Intellij with Liferay plugins?

I'm developing some plugins that are built with Ant, and I would like to use Intellij IDEA for Liferay plugin developmentWhat is the correct way to setup Ant plugins to work with Intellij? What I've done so far, I've downloaded Liferay's source code and added that to classpath,...

330