Esempio n. 1
0
 public void Draw()
 {
     if (WithinCamera(_cameraPos))
     {
         GSS.SpriteBatch.Draw(_texture,
                              DrawHelp.GetBoundary(_cameraPos, _position, _size),
                              null, Color.White, _rotationAngle, _origin, SpriteEffects.None, 0);
     }
     Debug();
 }
Esempio n. 2
0
 public Rectangle getShape(Vector2 cameraPos)
 {
     return(DrawHelp.getShape(cameraPos, Position, Size));
 }
Esempio n. 3
0
 public Rectangle GetShape(Vector2 cameraPos)
 {
     return(DrawHelp.GetBoundary(cameraPos, Position, Size));
 }