private static Internal_Create ( |
||
mono | ||
size | int | |
format | TextureFormat | |
mipmap | bool | |
리턴 | void |
public Cubemap(int width, GraphicsFormat format, TextureCreationFlags flags) { bool flag = base.ValidateFormat(format, FormatUsage.Sample); if (flag) { Cubemap.Internal_Create(this, width, Texture.GenerateAllMips, format, flags, IntPtr.Zero); } }
public Cubemap(int width, GraphicsFormat format, TextureCreationFlags flags, int mipCount) { bool flag = !base.ValidateFormat(format, FormatUsage.Sample); if (!flag) { Cubemap.ValidateIsNotCrunched(flags); Cubemap.Internal_Create(this, width, mipCount, format, flags, IntPtr.Zero); } }
internal Cubemap(int width, TextureFormat textureFormat, int mipCount, IntPtr nativeTex) { bool flag = !base.ValidateFormat(textureFormat); if (!flag) { GraphicsFormat graphicsFormat = GraphicsFormatUtility.GetGraphicsFormat(textureFormat, false); TextureCreationFlags textureCreationFlags = (mipCount != 1) ? TextureCreationFlags.MipChain : TextureCreationFlags.None; bool flag2 = GraphicsFormatUtility.IsCrunchFormat(textureFormat); if (flag2) { textureCreationFlags |= TextureCreationFlags.Crunch; } Cubemap.ValidateIsNotCrunched(textureCreationFlags); Cubemap.Internal_Create(this, width, mipCount, graphicsFormat, textureCreationFlags, nativeTex); } }
internal Cubemap(int size, TextureFormat format, bool mipmap, IntPtr nativeTex) { Cubemap.Internal_Create(this, size, format, mipmap, nativeTex); }
public Cubemap(int size, TextureFormat format, bool mipmap) { Cubemap.Internal_Create(this, size, format, mipmap, IntPtr.Zero); }