using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using UnityEngine;

namespace UnityStandardAssets.ImageEffects
{
	// Token: 0x02000643 RID: 1603
	public class Twirl : ImageEffectBase
	{
		// Token: 0x0600A5D5 RID: 42453 RVA: 0x002A84AC File Offset: 0x002A66AC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 654497, XrefRangeEnd = 654499, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnRenderImage(RenderTexture source, RenderTexture destination)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(source);
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(destination);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(Twirl.NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A5D6 RID: 42454 RVA: 0x002A8520 File Offset: 0x002A6720
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 654499, XrefRangeEnd = 654500, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe Twirl()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<Twirl>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(Twirl.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A5D7 RID: 42455 RVA: 0x002A856C File Offset: 0x002A676C
		// Note: this type is marked as 'beforefieldinit'.
		static Twirl()
		{
			Il2CppClassPointerStore<Twirl>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "UnityStandardAssets.ImageEffects", "Twirl");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<Twirl>.NativeClassPtr);
			Twirl.NativeFieldInfoPtr_radius = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<Twirl>.NativeClassPtr, "radius");
			Twirl.NativeFieldInfoPtr_angle = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<Twirl>.NativeClassPtr, "angle");
			Twirl.NativeFieldInfoPtr_center = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<Twirl>.NativeClassPtr, "center");
			Twirl.NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Twirl>.NativeClassPtr, 100676145);
			Twirl.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Twirl>.NativeClassPtr, 100676146);
		}

		// Token: 0x0600A5D8 RID: 42456 RVA: 0x0029E7C8 File Offset: 0x0029C9C8
		public Twirl(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17003814 RID: 14356
		// (get) Token: 0x0600A5D9 RID: 42457 RVA: 0x002A8600 File Offset: 0x002A6800
		// (set) Token: 0x0600A5DA RID: 42458 RVA: 0x002A8628 File Offset: 0x002A6828
		public unsafe Vector2 radius
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Twirl.NativeFieldInfoPtr_radius);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Twirl.NativeFieldInfoPtr_radius)) = value;
			}
		}

		// Token: 0x17003815 RID: 14357
		// (get) Token: 0x0600A5DB RID: 42459 RVA: 0x002A864C File Offset: 0x002A684C
		// (set) Token: 0x0600A5DC RID: 42460 RVA: 0x002A8674 File Offset: 0x002A6874
		public unsafe float angle
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Twirl.NativeFieldInfoPtr_angle);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Twirl.NativeFieldInfoPtr_angle)) = value;
			}
		}

		// Token: 0x17003816 RID: 14358
		// (get) Token: 0x0600A5DD RID: 42461 RVA: 0x002A8698 File Offset: 0x002A6898
		// (set) Token: 0x0600A5DE RID: 42462 RVA: 0x002A86C0 File Offset: 0x002A68C0
		public unsafe Vector2 center
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Twirl.NativeFieldInfoPtr_center);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Twirl.NativeFieldInfoPtr_center)) = value;
			}
		}

		// Token: 0x04006F48 RID: 28488
		private static readonly IntPtr NativeFieldInfoPtr_radius;

		// Token: 0x04006F49 RID: 28489
		private static readonly IntPtr NativeFieldInfoPtr_angle;

		// Token: 0x04006F4A RID: 28490
		private static readonly IntPtr NativeFieldInfoPtr_center;

		// Token: 0x04006F4B RID: 28491
		private static readonly IntPtr NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0;

		// Token: 0x04006F4C RID: 28492
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
