public void AttachColor(uint attachmentIndex, TextureCube texture, TextureCube.CubeFace cubeFace, uint level) { AttachColor(attachmentIndex, new TextureCubeAttachment(texture, cubeFace, level)); }
/// <summary> /// Construct a TextureCubeAttachment specifing the texture. /// </summary> /// <param name="texture"> /// The <see cref="TextureCube"/> to be attached to a Framebuffer. /// </param> /// <param name="cubeFace"> /// The specific <see cref="TextureCube.CubeFace"/> to attach to a Framebuffer. /// </param> /// <param name="textureLevel"> /// A <see cref="UInt32"/> that specify the level of <paramref name="texture"/> to be attached. /// </param> /// <exception cref="ArgumentNullException"> /// Exception thrown if <paramref name="texture"/> is null. /// </exception> public TextureCubeAttachment(TextureCube texture, TextureCube.CubeFace cubeFace, uint textureLevel) : base(texture, textureLevel, TextureCube.GetTextureCubeTarget(cubeFace)) { }
/// <summary> /// Construct a TextureCubeAttachment specifing the texture. /// </summary> /// <param name="texture"> /// The <see cref="TextureCube"/> to be attached to a Framebuffer. /// </param> /// <param name="cubeFace"> /// The specific <see cref="TextureCube.CubeFace"/> to attach to a Framebuffer. /// </param> /// <exception cref="ArgumentNullException"> /// Exception thrown if <paramref name="texture"/> is null. /// </exception> public TextureCubeAttachment(TextureCube texture, TextureCube.CubeFace cubeFace) : this(texture, cubeFace, 0) { }
public void AttachColor(TextureCube texture, TextureCube.CubeFace cubeFace, uint attachmentIndex, uint level) { AttachColor(new RenderTextureCubeAttachment(texture, cubeFace, level), attachmentIndex); }
public void AttachColor(TextureCube texture, TextureCube.CubeFace cubeFace, uint attachmentIndex) { AttachColor(texture, cubeFace, attachmentIndex, 0); }
public void AttachColor(TextureCube texture, TextureCube.CubeFace cubeFace) { AttachColor(texture, cubeFace, 0); }