Ejemplo n.º 1
0
 public void Draw(SpriteBatch sb)
 {
     if (DrawUnder != null)
     {
         DrawUnder(this, sb);
     }
     Camera.drawGeneric(sb, MemSave.getr((int)position.X, (int)position.Y, size, size), c, null, 0, Vector2.Zero, SpriteEffects.None, 0);
     if (DrawOver != null)
     {
         DrawOver(this, sb);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Called after FINISH, draws all data to the backbuffer
 /// </summary>
 /// <param name="sb"></param>
 public static void RENDER(SpriteBatch sb)
 {
     sb.Draw(TOTAL, MemSave.getr(0, 0, TOTAL.Width, TOTAL.Height), Color.White);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Get the full view of the camera
 /// </summary>
 /// <returns>Full view space, accounting for zoom</returns>
 public Rectangle getView()
 {
     return(MemSave.getr(CameraLocation.X, CameraLocation.Y, (int)Math.Round(ScreenLocation.Width / myZoom), (int)Math.Round(ScreenLocation.Height / myZoom)));
 }