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