39 lines
889 B
C#
39 lines
889 B
C#
using System;
|
|
using System.IO;
|
|
using PortableGL;
|
|
using Blarg.GameFramework.Graphics;
|
|
using Blarg.GameFramework.Input;
|
|
using Blarg.GameFramework.IO;
|
|
|
|
namespace Blarg.GameFramework
|
|
{
|
|
public interface IApplication : IDisposable
|
|
{
|
|
PlatformOS OperatingSystem { get; }
|
|
PlatformType PlatformType { get; }
|
|
|
|
ILogger Logger { get; }
|
|
ServiceContainer Services { get; }
|
|
IFileSystem FileSystem { get; }
|
|
IKeyboard Keyboard { get; }
|
|
IMouse Mouse { get; }
|
|
ITouchScreen TouchScreen { get; }
|
|
IPlatformWindow Window { get; }
|
|
GraphicsDevice GraphicsDevice { get; }
|
|
|
|
int FPS { get; }
|
|
float FrameTime { get; }
|
|
int RendersPerSecond { get; }
|
|
int UpdatesPerSecond { get; }
|
|
int RenderTime { get; }
|
|
int UpdateTime { get; }
|
|
bool IsRunningSlowly { get; }
|
|
|
|
void Run(IGameApp gameApp, IPlatformConfiguration config);
|
|
void Quit();
|
|
|
|
IPlatformBitmap LoadBitmap(Stream file);
|
|
}
|
|
}
|
|
|