Package tripleplay.flump
Class Library
java.lang.Object
tripleplay.flump.Library
-
Field Summary
-
Constructor Summary
ConstructorDescriptionLibrary
(float frameRate, Iterable<Movie.Symbol> movies, Iterable<Texture.Symbol> textures) -
Method Summary
Modifier and TypeMethodDescriptioncreateInstance
(String symbolName) Creates an instance of a symbol, or throws if the symbol name is not in this library.createMovie
(String symbolName) createTexture
(String symbolName) static void
pack
(Graphics gfx, QuadBatch batch, Collection<Library> libs) Pack multiple libraries into a single group of atlases.
-
Field Details
-
frameRate
public final float frameRateThe original frame rate of movies in this library. -
symbols
The symbols defined in this library.
-
-
Constructor Details
-
Library
-
-
Method Details
-
pack
Pack multiple libraries into a single group of atlases. The libraries will be modified so that their symbols point at the new atlases.- Parameters:
batch
- the quad batch to use to render into new atlas textures. This will usually be your game's default batch unless you're doing something fancy.
-
createInstance
Creates an instance of a symbol, or throws if the symbol name is not in this library. -
createMovie
-
createTexture
-