1
0
mirror of https://github.com/xiaopeng12138/MaiDXR.git synced 2024-12-18 11:55:52 +01:00
MaiDXR/Assets/uWindowCapture/Runtime/UwcCommon.cs
2022-01-05 19:44:30 +01:00

74 lines
1.1 KiB
C#

using UnityEngine;
using UnityEngine.Events;
namespace uWindowCapture
{
public enum WindowTextureType
{
Window = 0,
Desktop = 1,
Child = 2,
}
public enum WindowTextureCaptureTiming
{
EveryFrame = 0,
OnlyWhenVisible = 1,
Manual = 2,
}
public enum WindowTextureScaleControlType
{
BaseScale = 0,
FixedWidth = 1,
FixedHeight = 2,
Manual = 3,
}
public enum WindowSearchTiming
{
Always = 0,
Manual = 1,
OnlyWhenParameterChanged = 2,
}
public enum WindowTitlesUpdateTiming
{
Manual = 0,
AlwaysAllWindows = 1,
AlwaysAltTabWindows = 2,
}
public class UwcEvent : UnityEvent
{
}
public class UwcWindowEvent : UnityEvent<UwcWindow>
{
}
public class UwcWindowChangeEvent : UnityEvent<UwcWindow, UwcWindow>
{
}
public class UwcWindowTextureEvent : UnityEvent<UwcWindowTexture>
{
}
public struct RayCastResult
{
public bool hit;
public UwcWindowTexture texture;
public Vector3 position;
public Vector3 normal;
public Vector2 windowCoord;
public Vector2 desktopCoord;
}
public static class UwcSetting
{
public const int MiddlePriorityMaxZ = 5;
}
}