public void flush() { textureList = new Hashtable(); textures = new Texture[Config.maxTextures]; dummy = new Texture(); textureCount = 0; addTexture("--dummy--", dummy); }
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); } }
public void addTexture(String s) { addTexture(s, dummy); }