コード例 #1
0
 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);
 }
コード例 #2
0
 /// <summary>
 /// copy constructor
 /// </summary>
 /// <param name="f"></param>
 public RC_Frame(RC_Frame f)
 {
     source = f.source;
     tex    = f.tex;
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 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;
 }
コード例 #5
0
 /// <summary>
 /// Adds a frame to the list
 ///
 /// </summary>
 /// <param name="r"></param>
 public void addToEnd(RC_Frame f)
 {
     flist.Add(f);
 }