Exemplo n.º 1
0
 public void flush() {
   textureList = new Hashtable();
   textures = new Texture[Config.maxTextures];
   dummy = new Texture();
   textureCount = 0;
   addTexture("--dummy--", dummy);
 }
Exemplo n.º 2
0
  public void setState(Vector vector) {
    flush();
    try {
      for (int i = 0; i < vector.size(); i++) {
        Object aobj[] = (Object[]) vector.elementAt(i);
        String s = (String) aobj[0];
        Texture texture = (Texture) aobj[1];
        if (!s.equals("--dummy--")) addTexture(s, texture);
      }

    } catch (Exception exception) {
      Logger.log("Not a valid dump!", 0);
    }
  }
Exemplo n.º 3
0
 public void addTexture(String s) {
   addTexture(s, dummy);
 }