1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-09-18 17:26:05 -04:00
OpenDiablo2/OpenDiablo2.Common/Interfaces/IRenderWindow.cs

31 lines
1.2 KiB
C#
Raw Normal View History

2018-11-26 19:07:46 -05:00
using System;
using System.Drawing;
2018-11-26 19:07:46 -05:00
using OpenDiablo2.Common.Models;
2018-11-22 00:18:42 -05:00
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);
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);
void Draw(ISprite sprite, int frame, Point location);
void Draw(ISprite sprite, int frame);
void Draw(ISprite sprite, int xSegments, int ySegments, int offset);
IMouseCursor LoadCursor(ISprite sprite, int frame, Point hotspot);
void SetCursor(IMouseCursor mouseCursor);
2018-11-22 16:22:39 -05:00
void Draw(ILabel label);
void DrawMapCell(int xCell, int yCell, int xPixel, int yPixel, MPQDS1 mapData, int main_index, int sub_index, Palette palette, int orientation);
2018-11-22 00:18:42 -05:00
}
}