Example #1
0
        public Renderer(Core core, SpriteBatch spriteBatch, int screenWidth, int screenHeight)
        {
            this.core = core;
              this.spriteBatch = spriteBatch;

              ScreenWidth = screenWidth;
              ScreenHeight = screenHeight;

              surface = SpriteBatch.CreateSurface("Content\\SpriteSheet.png");
        }
Example #2
0
 public static void DestroySurface(Surface s)
 {
     s.Dispose();
 }
Example #3
0
 public void Draw(Surface s, Rectangle srs, Rectangle dest)
 {
     s.Blit(srs, dest);
 }
Example #4
0
 public void Draw(Surface s, int x, int y)
 {
     s.Blit(new Rectangle(x, y, s.Size.Width, s.Size.Height));
 }
Example #5
0
 public void Draw(Surface s)
 {
     s.Blit(new Rectangle(0, 0, s.Size.Width, s.Size.Height));
 }