Class Library

java.lang.Object
tripleplay.flump.Library

public class Library extends Object
  • Field Details

    • frameRate

      public final float frameRate
      The original frame rate of movies in this library.
    • symbols

      public final Map<String,Symbol> symbols
      The symbols defined in this library.
  • Constructor Details

  • Method Details

    • pack

      public static void pack(Graphics gfx, QuadBatch batch, Collection<Library> libs)
      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

      public Instance createInstance(String symbolName)
      Creates an instance of a symbol, or throws if the symbol name is not in this library.
    • createMovie

      public Movie createMovie(String symbolName)
    • createTexture

      public Texture createTexture(String symbolName)