Android Open Source - Flumpgdx Texture Cache






From Project

Back to project page Flumpgdx.

License

The source code is released under:

Copyright (c) 2014 Daniyal Khan Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Softw...

If you think the Android project Flumpgdx listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.flumpgdx.display;
//from  ww w. j av a 2  s. co m
import com.badlogic.gdx.utils.ObjectMap;

public class TextureCache {

  private static TextureCache instance;
  private ObjectMap<String, FlumpDisplayTexture> cache;
  
  private TextureCache() {
    cache = new ObjectMap<String, FlumpDisplayTexture>();
  }
  
  public static TextureCache obtain() {
    if (instance == null) instance = new TextureCache();
    return instance;
  }
  
  public FlumpDisplayTexture get(String filename) {
    return cache.get(filename);
  }
  
  public void cache(String filename, FlumpDisplayTexture texture) {
    cache.put(filename, texture);
  }

}




Java Source Code List

com.flumpgdx.FlumpGDX.java
com.flumpgdx.IOSLauncher.java
com.flumpgdx.android.AndroidLauncher.java
com.flumpgdx.client.GwtLauncher.java
com.flumpgdx.desktop.DesktopLauncher.java
com.flumpgdx.display.FlumpAnimation.java
com.flumpgdx.display.FlumpDisplayBundle.java
com.flumpgdx.display.FlumpDisplayTexture.java
com.flumpgdx.display.FlumpDisplay.java
com.flumpgdx.display.TextureCache.java
com.flumpgdx.library.FlumpAtlas.java
com.flumpgdx.library.FlumpKeyFrame.java
com.flumpgdx.library.FlumpLayer.java
com.flumpgdx.library.FlumpLibraryFile.java
com.flumpgdx.library.FlumpMovie.java
com.flumpgdx.library.FlumpTextureGroup.java
com.flumpgdx.library.FlumpTextureRegion.java
com.flumpgdx.library.MovieMaker.java