Push from tablet
This commit is contained in:
10
Program.cs
10
Program.cs
@@ -24,10 +24,10 @@ namespace Barbs
|
||||
|
||||
protected override void Initialize()
|
||||
{
|
||||
// TODO: Add your initialization logic here
|
||||
graphics.PreferredBackBufferHeight = 1824;
|
||||
graphics.PreferredBackBufferWidth = 2736;
|
||||
graphics.PreferredBackBufferHeight = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Height;
|
||||
graphics.PreferredBackBufferWidth = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width;
|
||||
graphics.ApplyChanges();
|
||||
Window.IsBorderless = true;
|
||||
|
||||
base.Initialize();
|
||||
}
|
||||
@@ -39,14 +39,14 @@ namespace Barbs
|
||||
ballTexture = Content.Load<Texture2D>("ball");
|
||||
|
||||
world = Matrix.CreateTranslation(0, 0, 0);
|
||||
view = Matrix.CreateLookAt(new Vector3(0, 0, 3), new Vector3(0, 0, 0), new Vector3(0, 1, 0));
|
||||
view = Matrix.CreateLookAt(new Vector3(0.3f, 0, 2.0f), new Vector3(0, 0, 0), new Vector3(0, 1, 0));
|
||||
projection = Matrix.CreatePerspectiveFieldOfView(MathHelper.ToRadians(45), 800f / 480f, 0.01f, 100f);
|
||||
|
||||
basicEffect = new BasicEffect(GraphicsDevice);
|
||||
lineEffect = Content.Load<Effect>("line");
|
||||
|
||||
Vector2[] arr = { new Vector2(0.0f,0.0f), new Vector2(0.2f,0.5f), new Vector2(0.2f,0.0f), new Vector2(0.5f,0.0f),
|
||||
new Vector2(0.7f,-0.5f)};
|
||||
new Vector2(0.7f,-0.5f), new Vector2(1.0f, 1.0f)};
|
||||
this.testLine = new Line(new List<Vector2>(arr), 0.01f, Color.DarkSlateGray);
|
||||
this.testLine.InitOnGraphicalDevice(GraphicsDevice);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user