public boolean addAnimation(String name,int firstFrame, long[] timestamps)
	{
		int firstFreeFrame = firstFrame;

		if(timestamps.length + firstFreeFrame > framesX * framesY) {
			System.out.println(
					"Could not add Animation \"" + name + "\" to the texture, as that would cause the "
							+ "Animation to point to a non-existing frame.");
			return false; //To indicate failure.
		} else {
			animations.add(new Animation(name, firstFreeFrame, timestamps));
			return true;
		}
	}