2020-04-24 00:24:39 +02:00
|
|
|
using Microsoft.Xna.Framework;
|
|
|
|
using Microsoft.Xna.Framework.Graphics;
|
2020-04-09 18:06:01 +02:00
|
|
|
using MLEM.Startup;
|
|
|
|
|
|
|
|
namespace Test {
|
|
|
|
public class GameImpl : MlemGame {
|
|
|
|
|
|
|
|
public static GameImpl Instance { get; private set; }
|
2020-04-24 00:24:39 +02:00
|
|
|
private Texture2D texture;
|
2020-04-09 18:06:01 +02:00
|
|
|
|
|
|
|
public GameImpl() {
|
|
|
|
Instance = this;
|
|
|
|
}
|
|
|
|
|
2020-04-24 00:24:39 +02:00
|
|
|
protected override void LoadContent() {
|
|
|
|
base.LoadContent();
|
|
|
|
this.texture = LoadContent<Texture2D>("Textures/Test");
|
|
|
|
}
|
|
|
|
|
|
|
|
protected override void DoDraw(GameTime gameTime) {
|
|
|
|
this.GraphicsDevice.Clear(Color.Black);
|
|
|
|
base.DoDraw(gameTime);
|
|
|
|
this.SpriteBatch.Begin(samplerState: SamplerState.PointClamp, transformMatrix: Matrix.CreateScale(10));
|
|
|
|
this.SpriteBatch.Draw(this.texture, Vector2.Zero, Color.White);
|
|
|
|
this.SpriteBatch.End();
|
|
|
|
}
|
|
|
|
|
2020-04-09 18:06:01 +02:00
|
|
|
}
|
|
|
|
}
|