2018-11-24 10:54:02 -05:00
|
|
|
|
using OpenDiablo2.Common.Enums;
|
|
|
|
|
using OpenDiablo2.Common.Models;
|
2018-11-22 00:18:42 -05:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2018-11-22 14:30:37 -05:00
|
|
|
|
using System.Drawing;
|
2018-11-22 00:18:42 -05:00
|
|
|
|
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();
|
2018-11-22 18:46:24 -05:00
|
|
|
|
void Quit();
|
2018-11-22 14:30:37 -05:00
|
|
|
|
ISprite LoadSprite(string resourcePath, string palette, Point location);
|
|
|
|
|
ISprite LoadSprite(string resourcePath, string palette);
|
2018-11-22 16:22:39 -05:00
|
|
|
|
IFont LoadFont(string resourcePath, string palette);
|
|
|
|
|
ILabel CreateLabel(IFont font);
|
|
|
|
|
ILabel CreateLabel(IFont font, string text);
|
|
|
|
|
ILabel CreateLabel(IFont font, Point position, string text);
|
2018-11-22 00:18:42 -05:00
|
|
|
|
void Draw(ISprite sprite);
|
2018-11-22 16:22:39 -05:00
|
|
|
|
void Draw(ISprite sprite, Point location);
|
2018-11-23 21:56:30 -05:00
|
|
|
|
void Draw(ISprite sprite, int frame, Point location);
|
2018-11-22 14:30:37 -05:00
|
|
|
|
void Draw(ISprite sprite, int frame);
|
2018-11-22 12:35:21 -05:00
|
|
|
|
void Draw(ISprite sprite, int xSegments, int ySegments, int offset);
|
2018-11-22 16:22:39 -05:00
|
|
|
|
void Draw(ILabel label);
|
2018-11-25 18:37:53 -05:00
|
|
|
|
void DrawMapCell(int xCell, int yCell, int xPixel, int yPixel, MPQDS1 mapData, int main_index, int sub_index, Palette palette, int orientation = -1);
|
2018-11-22 00:18:42 -05:00
|
|
|
|
}
|
|
|
|
|
}
|