Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added rotation support for viewport and WPF renderers #11

Merged
merged 3 commits into from
Sep 18, 2014

Commits on Sep 11, 2014

  1. Configuration menu
    Copy the full SHA
    39ebef5 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2014

  1. Corrected bounds of Viewport.WindowExtent when rotated

    The WindowExtent was represented by a BoundingBox which needs to be
    axis-aligned since it only stores min and max points. If the viewport is
    rotated, the actually visible extents (WindowExtent) will not be
    axis-aligned. Added the Quad class which stores 4 corner points that do
    not have to be axis-aligned and used this class to represent the
    Viewport.WindowExtent instead of BoundingBox so it would contain the
    proper values when rotated.
    scottdewald committed Sep 12, 2014
    Configuration menu
    Copy the full SHA
    8320c07 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2014

  1. Improved WPF tile rendering

    Improved rendering of tiles to hide lines between tiles.
    Added IViewport.WorldToScreenUnrotated() which goes along with
    IViewport.WorldToScreen(). The first converts world coordinates to
    screen coordinates assuming the screen isn't rotated while the later
    does a full conversion taking rotation into account. The
    WorldToScreenUnrotated() is useful for placing WPF elements in cases
    where a transform will handle the rotation portion of the positioning.
    scottdewald committed Sep 13, 2014
    Configuration menu
    Copy the full SHA
    e7be589 View commit details
    Browse the repository at this point in the history