public bool setFrame(int num, RC_Frame f) { if (num < 0) { return(false); } if (num < flist.Count()) { flist[num] = new RC_Frame(f); return(true); } return(false); }
/// <summary> /// copy constructor /// </summary> /// <param name="f"></param> public RC_Frame(RC_Frame f) { source = f.source; tex = f.tex; }
public RenderableFrame(RC_Frame frameZ, Color colourZ, GraphicsDevice g) { frame = new RC_Frame(frameZ); bounds = new Rectangle(0, 0, g.Viewport.Width, g.Viewport.Height); colour = colourZ; }
public RenderableFrame(RC_Frame frameZ, Rectangle destZ, Color colourZ) { frame = new RC_Frame(frameZ); bounds = new Rectangle(destZ.X, destZ.Y, destZ.Width, destZ.Height); colour = colourZ; }
/// <summary> /// Adds a frame to the list /// /// </summary> /// <param name="r"></param> public void addToEnd(RC_Frame f) { flist.Add(f); }