1
0
mirror of synced 2024-12-01 01:07:19 +01:00
WACVR/Assets/uWindowCapture/Runtime/UwcCommon.cs
2022-05-16 23:38:40 +02: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;
}
}