public Animation(String name, int startFrame,long[] timestamps)
	{
		this.animationName = name;
		if(timestamps==null)
		{
			this.numFrames=0;
			this.startFrameInTexture=0;
			this.timestamps=new long[0];
			this.totalTime=0;
			this.frames=new int[0];
		}
		else
		{
			this.numFrames=timestamps.length;
			this.startFrameInTexture=startFrame;
			this.timestamps=timestamps.clone();
			long totTime=0;
			for(long i : timestamps)
				totTime+=i;
			this.totalTime=totTime;
			this.frames=new int[timestamps.length];
			for(int i=0;i<frames.length;i++)
				frames[i]=startFrame+i;
		}
	}