-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathISample.cs
More file actions
34 lines (27 loc) · 795 Bytes
/
ISample.cs
File metadata and controls
34 lines (27 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using FishUI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FishUIDemos
{
public delegate void TakeScreenshotFunc(string Title);
public interface ISample
{
/// <summary>
/// Display name of the sample.
/// </summary>
public string Name { get; }
public FishUI.FishUI CreateUI(FishUISettings UISettings, IFishUIGfx Gfx, IFishUIInput Input, IFishUIEvents Events);
public void Init();
/// <summary>
/// Called every frame before FishUI.Tick(). Optional update logic.
/// </summary>
public void Update(float dt) { }
/// <summary>
/// Sets the action to be called when the sample wants to take a screenshot.
/// </summary>
public TakeScreenshotFunc TakeScreenshot { get; set; }
}
}