using System; using System.Runtime.CompilerServices; using UnityEngine.Internal; using UnityEngine.Scripting; namespace UnityEngine { // Token: 0x020000CF RID: 207 public sealed class Cubemap : Texture { // Token: 0x06000F21 RID: 3873 RVA: 0x00014C48 File Offset: 0x00012E48 public Cubemap(int size, TextureFormat format, bool mipmap) { Cubemap.Internal_Create(this, size, format, mipmap, IntPtr.Zero); } // Token: 0x06000F22 RID: 3874 RVA: 0x00014C60 File Offset: 0x00012E60 internal Cubemap(int size, TextureFormat format, bool mipmap, IntPtr nativeTex) { Cubemap.Internal_Create(this, size, format, mipmap, nativeTex); } // Token: 0x06000F23 RID: 3875 RVA: 0x00014C74 File Offset: 0x00012E74 public void SetPixel(CubemapFace face, int x, int y, Color color) { Cubemap.INTERNAL_CALL_SetPixel(this, face, x, y, ref color); } // Token: 0x06000F24 RID: 3876 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern void INTERNAL_CALL_SetPixel(Cubemap self, CubemapFace face, int x, int y, ref Color color); // Token: 0x06000F25 RID: 3877 RVA: 0x00014C84 File Offset: 0x00012E84 public Color GetPixel(CubemapFace face, int x, int y) { Color color; Cubemap.INTERNAL_CALL_GetPixel(this, face, x, y, out color); return color; } // Token: 0x06000F26 RID: 3878 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern void INTERNAL_CALL_GetPixel(Cubemap self, CubemapFace face, int x, int y, out Color value); // Token: 0x06000F27 RID: 3879 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public extern Color[] GetPixels(CubemapFace face, [DefaultValue("0")] int miplevel); // Token: 0x06000F28 RID: 3880 RVA: 0x00014CA8 File Offset: 0x00012EA8 [ExcludeFromDocs] public Color[] GetPixels(CubemapFace face) { int num = 0; return this.GetPixels(face, num); } // Token: 0x06000F29 RID: 3881 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public extern void SetPixels(Color[] colors, CubemapFace face, [DefaultValue("0")] int miplevel); // Token: 0x06000F2A RID: 3882 RVA: 0x00014CC8 File Offset: 0x00012EC8 [ExcludeFromDocs] public void SetPixels(Color[] colors, CubemapFace face) { int num = 0; this.SetPixels(colors, face, num); } // Token: 0x1700032A RID: 810 // (get) Token: 0x06000F2B RID: 3883 public extern int mipmapCount { [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] get; } // Token: 0x06000F2C RID: 3884 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public extern void Apply([DefaultValue("true")] bool updateMipmaps, [DefaultValue("false")] bool makeNoLongerReadable); // Token: 0x06000F2D RID: 3885 RVA: 0x00014CE4 File Offset: 0x00012EE4 [ExcludeFromDocs] public void Apply(bool updateMipmaps) { bool flag = false; this.Apply(updateMipmaps, flag); } // Token: 0x06000F2E RID: 3886 RVA: 0x00014CFC File Offset: 0x00012EFC [ExcludeFromDocs] public void Apply() { bool flag = false; bool flag2 = true; this.Apply(flag2, flag); } // Token: 0x1700032B RID: 811 // (get) Token: 0x06000F2F RID: 3887 public extern TextureFormat format { [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] get; } // Token: 0x06000F30 RID: 3888 RVA: 0x00014D18 File Offset: 0x00012F18 public static Cubemap CreateExternalTexture(int size, TextureFormat format, bool mipmap, IntPtr nativeTex) { if (nativeTex == IntPtr.Zero) { throw new ArgumentException("nativeTex can not be null"); } return new Cubemap(size, format, mipmap, nativeTex); } // Token: 0x06000F31 RID: 3889 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern void Internal_Create([Writable] Cubemap mono, int size, TextureFormat format, bool mipmap, IntPtr nativeTex); // Token: 0x06000F32 RID: 3890 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public extern void SmoothEdges([DefaultValue("1")] int smoothRegionWidthInPixels); // Token: 0x06000F33 RID: 3891 RVA: 0x00014D54 File Offset: 0x00012F54 [ExcludeFromDocs] public void SmoothEdges() { int num = 1; this.SmoothEdges(num); } } }