add orthographic screen dimensions pixel scaler interface

This commit is contained in:
Gered 2013-08-24 19:00:43 -04:00
parent 28abc219d5
commit c5d996a5e9
2 changed files with 16 additions and 0 deletions

View file

@ -181,6 +181,7 @@
<Compile Include="UI\GwenSpriteBatchRenderer.cs" />
<Compile Include="IServiceLocator.cs" />
<Compile Include="BasicGameApp.cs" />
<Compile Include="Graphics\IOrthoPixelScaler.cs" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
<ItemGroup>

View file

@ -0,0 +1,15 @@
using System;
namespace Blarg.GameFramework.Graphics
{
public interface IOrthoPixelScaler
{
int Scale { get; }
int ScaledWidth { get; }
int ScaledHeight { get; }
void Calculate(Rect viewport);
}
}