220 lines
6.4 KiB
C#
220 lines
6.4 KiB
C#
using System;
|
|
using System.Runtime.CompilerServices;
|
|
using UnityEngine.Internal;
|
|
using UnityEngine.Scripting;
|
|
|
|
namespace UnityEngine
|
|
{
|
|
// Token: 0x020001EE RID: 494
|
|
public sealed class WebCamTexture : Texture
|
|
{
|
|
// Token: 0x060022A0 RID: 8864 RVA: 0x0002833C File Offset: 0x0002653C
|
|
public WebCamTexture(string deviceName, int requestedWidth, int requestedHeight, int requestedFPS)
|
|
{
|
|
WebCamTexture.Internal_CreateWebCamTexture(this, deviceName, requestedWidth, requestedHeight, requestedFPS);
|
|
}
|
|
|
|
// Token: 0x060022A1 RID: 8865 RVA: 0x00028350 File Offset: 0x00026550
|
|
public WebCamTexture(string deviceName, int requestedWidth, int requestedHeight)
|
|
{
|
|
WebCamTexture.Internal_CreateWebCamTexture(this, deviceName, requestedWidth, requestedHeight, 0);
|
|
}
|
|
|
|
// Token: 0x060022A2 RID: 8866 RVA: 0x00028364 File Offset: 0x00026564
|
|
public WebCamTexture(string deviceName)
|
|
{
|
|
WebCamTexture.Internal_CreateWebCamTexture(this, deviceName, 0, 0, 0);
|
|
}
|
|
|
|
// Token: 0x060022A3 RID: 8867 RVA: 0x00028378 File Offset: 0x00026578
|
|
public WebCamTexture(int requestedWidth, int requestedHeight, int requestedFPS)
|
|
{
|
|
WebCamTexture.Internal_CreateWebCamTexture(this, "", requestedWidth, requestedHeight, requestedFPS);
|
|
}
|
|
|
|
// Token: 0x060022A4 RID: 8868 RVA: 0x00028390 File Offset: 0x00026590
|
|
public WebCamTexture(int requestedWidth, int requestedHeight)
|
|
{
|
|
WebCamTexture.Internal_CreateWebCamTexture(this, "", requestedWidth, requestedHeight, 0);
|
|
}
|
|
|
|
// Token: 0x060022A5 RID: 8869 RVA: 0x000283A8 File Offset: 0x000265A8
|
|
public WebCamTexture()
|
|
{
|
|
WebCamTexture.Internal_CreateWebCamTexture(this, "", 0, 0, 0);
|
|
}
|
|
|
|
// Token: 0x060022A6 RID: 8870
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void Internal_CreateWebCamTexture([Writable] WebCamTexture self, string scriptingDevice, int requestedWidth, int requestedHeight, int maxFramerate);
|
|
|
|
// Token: 0x060022A7 RID: 8871 RVA: 0x000283C0 File Offset: 0x000265C0
|
|
public void Play()
|
|
{
|
|
WebCamTexture.INTERNAL_CALL_Play(this);
|
|
}
|
|
|
|
// Token: 0x060022A8 RID: 8872
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_Play(WebCamTexture self);
|
|
|
|
// Token: 0x060022A9 RID: 8873 RVA: 0x000283CC File Offset: 0x000265CC
|
|
public void Pause()
|
|
{
|
|
WebCamTexture.INTERNAL_CALL_Pause(this);
|
|
}
|
|
|
|
// Token: 0x060022AA RID: 8874
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_Pause(WebCamTexture self);
|
|
|
|
// Token: 0x060022AB RID: 8875 RVA: 0x000283D8 File Offset: 0x000265D8
|
|
public void Stop()
|
|
{
|
|
WebCamTexture.INTERNAL_CALL_Stop(this);
|
|
}
|
|
|
|
// Token: 0x060022AC RID: 8876
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_Stop(WebCamTexture self);
|
|
|
|
// Token: 0x1700082E RID: 2094
|
|
// (get) Token: 0x060022AD RID: 8877
|
|
public extern bool isPlaying
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
}
|
|
|
|
// Token: 0x1700082F RID: 2095
|
|
// (get) Token: 0x060022AE RID: 8878
|
|
// (set) Token: 0x060022AF RID: 8879
|
|
public extern string deviceName
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000830 RID: 2096
|
|
// (get) Token: 0x060022B0 RID: 8880
|
|
// (set) Token: 0x060022B1 RID: 8881
|
|
public extern float requestedFPS
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000831 RID: 2097
|
|
// (get) Token: 0x060022B2 RID: 8882
|
|
// (set) Token: 0x060022B3 RID: 8883
|
|
public extern int requestedWidth
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000832 RID: 2098
|
|
// (get) Token: 0x060022B4 RID: 8884
|
|
// (set) Token: 0x060022B5 RID: 8885
|
|
public extern int requestedHeight
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17000833 RID: 2099
|
|
// (get) Token: 0x060022B6 RID: 8886
|
|
public static extern WebCamDevice[] devices
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
}
|
|
|
|
// Token: 0x060022B7 RID: 8887 RVA: 0x000283E4 File Offset: 0x000265E4
|
|
public Color GetPixel(int x, int y)
|
|
{
|
|
Color color;
|
|
WebCamTexture.INTERNAL_CALL_GetPixel(this, x, y, out color);
|
|
return color;
|
|
}
|
|
|
|
// Token: 0x060022B8 RID: 8888
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_GetPixel(WebCamTexture self, int x, int y, out Color value);
|
|
|
|
// Token: 0x060022B9 RID: 8889 RVA: 0x00028404 File Offset: 0x00026604
|
|
public Color[] GetPixels()
|
|
{
|
|
return this.GetPixels(0, 0, this.width, this.height);
|
|
}
|
|
|
|
// Token: 0x060022BA RID: 8890
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public extern Color[] GetPixels(int x, int y, int blockWidth, int blockHeight);
|
|
|
|
// Token: 0x060022BB RID: 8891
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public extern Color32[] GetPixels32([DefaultValue("null")] Color32[] colors);
|
|
|
|
// Token: 0x060022BC RID: 8892 RVA: 0x00028430 File Offset: 0x00026630
|
|
[ExcludeFromDocs]
|
|
public Color32[] GetPixels32()
|
|
{
|
|
Color32[] array = null;
|
|
return this.GetPixels32(array);
|
|
}
|
|
|
|
// Token: 0x17000834 RID: 2100
|
|
// (get) Token: 0x060022BD RID: 8893
|
|
public extern int videoRotationAngle
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
}
|
|
|
|
// Token: 0x17000835 RID: 2101
|
|
// (get) Token: 0x060022BE RID: 8894
|
|
public extern bool videoVerticallyMirrored
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
}
|
|
|
|
// Token: 0x17000836 RID: 2102
|
|
// (get) Token: 0x060022BF RID: 8895
|
|
public extern bool didUpdateThisFrame
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
}
|
|
}
|
|
}
|