Beispiel #1
0
 ///<summary>  Attach a render buffer for the depth and stencil buffer</summary>
 public void AttachDepthStensil(GLRenderBuffer r)
 {
     GL.NamedFramebufferRenderbuffer(Id, FramebufferAttachment.DepthStencilAttachment, RenderbufferTarget.Renderbuffer, r.Id);
     GLStatics.Check();
 }
Beispiel #2
0
 ///<summary>  Attach a render buffer on colourtarget </summary>
 public void AttachColor(GLRenderBuffer r, int colourtarget)
 {
     ColorTarget = colourtarget;
     GL.NamedFramebufferRenderbuffer(Id, FramebufferAttachment.ColorAttachment0 + ColorTarget, RenderbufferTarget.Renderbuffer, r.Id);
     GLStatics.Check();
 }