mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-02 17:27:23 -04:00
33 lines
1.1 KiB
C#
33 lines
1.1 KiB
C#
using OpenDiablo2.Common.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Drawing;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace OpenDiablo2.Common.Interfaces
|
|
{
|
|
public interface IRenderWindow : IDisposable
|
|
{
|
|
bool IsRunning { get; }
|
|
void Update();
|
|
void Clear();
|
|
void Sync();
|
|
void Quit();
|
|
ISprite LoadSprite(string resourcePath, string palette, Point location);
|
|
ISprite LoadSprite(string resourcePath, string palette);
|
|
IFont LoadFont(string resourcePath, string palette);
|
|
ILabel CreateLabel(IFont font);
|
|
ILabel CreateLabel(IFont font, string text);
|
|
ILabel CreateLabel(IFont font, Point position, string text);
|
|
void Draw(ISprite sprite);
|
|
void Draw(ISprite sprite, Point location);
|
|
void Draw(ISprite sprite, int frame, Point location);
|
|
void Draw(ISprite sprite, int frame);
|
|
void Draw(ISprite sprite, int xSegments, int ySegments, int offset);
|
|
void Draw(ILabel label);
|
|
}
|
|
}
|