コード例 #1
0
ファイル: Framebuffer.cs プロジェクト: ipud2/OpenGL.Net-1
 public void AttachDepth(Texture2D texture)
 {
     AttachDepth(texture, 0);
 }
コード例 #2
0
ファイル: Framebuffer.cs プロジェクト: ipud2/OpenGL.Net-1
 public void AttachDepth(Texture2D texture, uint level)
 {
     AttachDepth(new TextureAttachment(texture, level));
 }
コード例 #3
0
ファイル: Framebuffer.cs プロジェクト: ipud2/OpenGL.Net-1
 /// <summary>
 /// Attach a 2D 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="level">
 /// A <see cref="UInt32"/> that specify the texture level to bind.
 /// </param>
 /// <param name="attachment">
 /// A <see cref="UInt32"/> that specify the framebuffer color attachment index.
 /// </param>
 public void AttachColor(uint attachmentIndex, Texture2D texture, uint level)
 {
     AttachColor(attachmentIndex, new TextureAttachment(texture, level));
 }