add orthographic screen dimensions pixel scaler interface
This commit is contained in:
parent
28abc219d5
commit
c5d996a5e9
|
@ -181,6 +181,7 @@
|
||||||
<Compile Include="UI\GwenSpriteBatchRenderer.cs" />
|
<Compile Include="UI\GwenSpriteBatchRenderer.cs" />
|
||||||
<Compile Include="IServiceLocator.cs" />
|
<Compile Include="IServiceLocator.cs" />
|
||||||
<Compile Include="BasicGameApp.cs" />
|
<Compile Include="BasicGameApp.cs" />
|
||||||
|
<Compile Include="Graphics\IOrthoPixelScaler.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
|
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
15
Blarg.GameFramework/Graphics/IOrthoPixelScaler.cs
Normal file
15
Blarg.GameFramework/Graphics/IOrthoPixelScaler.cs
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Reference in a new issue