add IGameApp interface
This commit is contained in:
parent
32f9203cee
commit
cb56371ba2
|
@ -81,6 +81,7 @@
|
|||
<Compile Include="Graphics\Color.cs" />
|
||||
<Compile Include="Graphics\Image.cs" />
|
||||
<Compile Include="Graphics\ScreenOrientation.cs" />
|
||||
<Compile Include="IGameApp.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
|
|
21
Blarg.GameFramework/IGameApp.cs
Normal file
21
Blarg.GameFramework/IGameApp.cs
Normal file
|
@ -0,0 +1,21 @@
|
|||
using System;
|
||||
using Blarg.GameFramework.Graphics;
|
||||
|
||||
namespace Blarg.GameFramework
|
||||
{
|
||||
public interface IGameApp
|
||||
{
|
||||
void OnAppGainFocus();
|
||||
void OnAppLostFocus();
|
||||
void OnAppPause();
|
||||
void OnAppResume();
|
||||
bool OnInit();
|
||||
void OnLoad();
|
||||
void OnUnload();
|
||||
void OnLostContext();
|
||||
void OnNewContext();
|
||||
void OnRender(float delta);
|
||||
void OnResize(ScreenOrientation orientation, Rect size);
|
||||
void OnUpdate(float delta);
|
||||
}
|
||||
}
|
Reference in a new issue