public GLES2RenderBuffer(All format, int width, int height, int numSamples) : base(width, height, 1, GLES2PixelUtil.GetClosestAxiomFormat(format, (All)PixelFormat.A8R8G8B8), BufferUsage.WriteOnly) { GlInternalFormat = format; //Genearte renderbuffer GL.GenRenderbuffers(1, ref this.renderBufferID); GLES2Config.GlCheckError(this); //Bind it to FBO GL.BindRenderbuffer(All.Renderbuffer, this.renderBufferID); GLES2Config.GlCheckError(this); //Allocate storage for depth buffer if (numSamples > 0) { } else { GL.RenderbufferStorage(All.Renderbuffer, format, width, height); GLES2Config.GlCheckError(this); } }
public void BindRenderbuffer(All target, int renderbuffer) { GLES20.BindRenderbuffer(target, renderbuffer); }