Пример #1
0
 public void AttachDepth(GLRenderBuffer buf)
 {
     GL.FramebufferRenderbuffer(FramebufferTarget.Framebuffer, FramebufferAttachment.DepthStencilAttachment, RenderbufferTarget.Renderbuffer, buf.Id);
 }
Пример #2
0
 public void AttachDepth(GLRenderBuffer buf)
 {
     IGL.Primary.FramebufferRenderbuffer((int)FramebufferTarget.Framebuffer, (int)FramebufferAttachment.DepthStencilAttachment, (int)RenderbufferTarget.Renderbuffer, buf.Id);
 }
Пример #3
0
 public void AttachColor(GLRenderBuffer buf)
 {
     GL.FramebufferRenderbuffer(FramebufferTarget.Framebuffer, FramebufferAttachment.ColorAttachment0, RenderbufferTarget.Renderbuffer, buf.Id);
 }
Пример #4
0
 public void AttachColor(GLRenderBuffer buf, int index = 0)
 {
     IGL.Primary.FramebufferRenderbuffer((int)FramebufferTarget.Framebuffer, (int)FramebufferAttachment.ColorAttachment0 + index, (int)RenderbufferTarget.Renderbuffer, buf.Id);
 }