1234567891011121314151617181920212223 |
- using Microsoft.Xna.Framework;
- using Microsoft.Xna.Framework.Graphics;
- namespace FarseerPhysics.SamplesFramework
- {
- public struct Sprite
- {
- public Vector2 Origin;
- public Texture2D Texture;
- public Sprite(Texture2D texture, Vector2 origin)
- {
- this.Texture = texture;
- this.Origin = origin;
- }
- public Sprite(Texture2D sprite)
- {
- Texture = sprite;
- Origin = new Vector2(sprite.Width / 2f, sprite.Height / 2f);
- }
- }
- }
|