Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Rectangle ViewPlane { get; private set; }
- public override void Update(GameTime gameTime)
- {
- if (!updateViewRequired) return;
- View = translationMatrix *
- rotationMatrix *
- scaleMatrix *
- focusPointMatrix;
- ViewPlane = new Rectangle(
- (int)(Position.X - (zoomWidth * 0.5)),
- (int)(Position.Y - (zoomHeight * 0.5)),
- zoomWidth,
- zoomHeight);
- }
Advertisement
Add Comment
Please, Sign In to add comment