Esempio n. 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");
        }
Esempio n. 2
0
 public static void DestroySurface(Surface s)
 {
     s.Dispose();
 }
Esempio n. 3
0
 public void Draw(Surface s, Rectangle srs, Rectangle dest)
 {
     s.Blit(srs, dest);
 }
Esempio n. 4
0
 public void Draw(Surface s, int x, int y)
 {
     s.Blit(new Rectangle(x, y, s.Size.Width, s.Size.Height));
 }
Esempio n. 5
0
 public void Draw(Surface s)
 {
     s.Blit(new Rectangle(0, 0, s.Size.Width, s.Size.Height));
 }