/** * 转化指定文件为动画图像 * * @param fileName * @param width * @param height * @param timer * @return */ public static Animation GetDefaultAnimation(string fileName, int width, int height, int timer) { return(Animation.GetDefaultAnimation( TextureUtils.GetSplitTextures(fileName, width, height), -1, timer)); }
public static Animation GetDefaultAnimation(LTexture texture) { return(Animation.GetDefaultAnimation(new LTexture[] { texture }, 1, 65535)); }
public TextureObject(float x, float y, LTexture tex2d) : base(x, y, tex2d.GetWidth(), tex2d.GetHeight(), Animation.GetDefaultAnimation(tex2d), null) { }
public static Animation GetDefaultAnimation(String fileName) { return(Animation.GetDefaultAnimation(LTextures.LoadTexture(fileName))); }
public TextureObject(float x, float y, string file) : base(x, y, Animation.GetDefaultAnimation(file), null) { }