Example #1
0
 /// <summary>
 /// Attach a rectangle texture image to color buffer.
 /// </summary>
 /// <param name="attachment">
 /// 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));
 }
Example #2
0
 public void AttachDepth(TextureRectangle texture)
 {
     AttachDepth(new TextureRectangleAttachment(texture));
 }
Example #3
0
 /// <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)
 {
 }