Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using Microsoft.Xna.Framework;
- using SeriousGameLib;
- using Microsoft.Xna.Framework.Graphics;
- namespace Fotograaf
- {
- public class Pixel
- {
- public static Texture2D Texture = null;
- public static void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch, Vector2 position)
- {
- if (Texture == null) Texture = GameObject.Content.Load<Texture2D>("Fotograaf/Images/cross");
- spriteBatch.Draw(Texture, new Vector2(position.X - Texture.Width / 2, position.Y - Texture.Height / 2), Color.White);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment