/// <summary> /// Attach a rectangle texture image to color buffer. /// </summary> /// <param name="attachmentIndex"> /// A <see cref="UInt32"/> that specify the framebuffer color attachment index. /// </param> /// <param name="texture"> /// A <see cref="Texture"/> which will be used for read/write operation on this RenderFrambuffer. /// </param> public void AttachColor(uint attachmentIndex, TextureRectangle texture) { AttachColor(attachmentIndex, new TextureAttachment(texture)); }
public void AttachDepth(TextureRectangle texture) { AttachDepth(new TextureRectangleAttachment(texture)); }
public void AttachDepth(TextureRectangle texture) { AttachDepth(new RenderTextureRectangleAttachment(texture)); }
/// <summary> /// Construct a TextureRectangleAttachment specifing the texture. /// </summary> /// <param name="texture"> /// The <see cref="TextureRectangle"/> to be attached to a Framebuffer. /// </param> /// <exception cref="ArgumentNullException"> /// Exception thrown if <paramref name="texture"/> is null. /// </exception> public TextureRectangleAttachment(TextureRectangle texture) : base(texture, 0) { }
/// <summary> /// Attach a rectangle texture image to color buffer. /// </summary> /// <param name="texture"> /// A <see cref="Texture"/> which will be used for read/write operation on this RenderFrambuffer. /// </param> /// <param name="attachmentIndex"> /// A <see cref="UInt32"/> that specify the framebuffer color attachment index. /// </param> public void AttachColor(TextureRectangle texture, uint attachmentIndex) { AttachColor(new RenderTextureAttachment(texture), attachmentIndex); }
/// <summary> /// Attach a rectangle texture image to color buffer. /// </summary> /// <param name="texture"> /// A <see cref="Texture"/> which will be used for read/write operation on this RenderFrambuffer. /// </param> public void AttachColor(TextureRectangle texture) { AttachColor(texture, 0); }
public RenderTextureRectangleAttachment(TextureRectangle texture) : base(texture, 0) { }