void Framebuffer::setDepthbuffer(GLenum type, GLuint depthbuffer) { mDepthbufferType = (depthbuffer != 0) ? type : GL_NONE; mDepthbufferPointer.set(lookupRenderbuffer(type, depthbuffer)); }
void Framebuffer::setStencilbuffer(GLenum type, GLuint stencilbuffer) { mStencilbufferType = (stencilbuffer != 0) ? type : GL_NONE; mStencilbufferPointer.set(lookupRenderbuffer(type, stencilbuffer)); }
void Framebuffer::setColorbuffer(unsigned int colorAttachment, GLenum type, GLuint colorbuffer) { ASSERT(colorAttachment < IMPLEMENTATION_MAX_DRAW_BUFFERS); mColorbufferTypes[colorAttachment] = (colorbuffer != 0) ? type : GL_NONE; mColorbufferPointers[colorAttachment].set(lookupRenderbuffer(type, colorbuffer)); }
void Framebuffer::setStencilbuffer(GLenum type, GLuint stencilbuffer) { mStencilbufferType = type; mStencilbufferPointer.set(lookupRenderbuffer(type, stencilbuffer)); }
void Framebuffer::setDepthbuffer(GLenum type, GLuint depthbuffer) { mDepthbufferType = type; mDepthbufferPointer.set(lookupRenderbuffer(type, depthbuffer)); }
void Framebuffer::setColorbuffer(GLenum type, GLuint colorbuffer) { mColorbufferType = type; mColorbufferPointer.set(lookupRenderbuffer(type, colorbuffer)); }
void Framebuffer::setColorbuffer(GLenum type, GLuint colorbuffer) { mColorbufferType = (colorbuffer != 0) ? type : GL_NONE_OES; mColorbufferPointer = lookupRenderbuffer(type, colorbuffer); }