Lines Matching refs:colorbuffer
73 void Framebuffer::setColorbuffer(unsigned int colorAttachment, GLenum type, GLuint colorbuffer)
76 mColorbufferTypes[colorAttachment] = (colorbuffer != 0) ? type : GL_NONE;
77 mColorbufferPointers[colorAttachment].set(lookupRenderbuffer(type, colorbuffer));
144 Renderbuffer *colorbuffer = mColorbufferPointers[colorAttachment].get();
146 if (colorbuffer)
148 return colorbuffer->getSerial();
331 const Renderbuffer *colorbuffer = getColorbuffer(colorAttachment);
333 if (!colorbuffer)
338 if (colorbuffer->getWidth() == 0 || colorbuffer->getHeight() == 0)
345 if (!gl::IsColorRenderable(colorbuffer->getInternalFormat()))
352 GLint internalformat = colorbuffer->getInternalFormat();
385 if (colorbuffer->getWidth() != width || colorbuffer->getHeight() != height)
392 if (colorbuffer->getSamples() != samples)
398 if (gl::ComputePixelSize(colorbuffer->getInternalFormat()) != colorbufferSize)
414 width = colorbuffer->getWidth();
415 height = colorbuffer->getHeight();
416 samples = colorbuffer->getSamples();
417 colorbufferSize = gl::ComputePixelSize(colorbuffer->getInternalFormat());
561 DefaultFramebuffer::DefaultFramebuffer(rx::Renderer *renderer, Colorbuffer *colorbuffer, DepthStencilbuffer *depthStencil)
564 mColorbufferPointers[0].set(new Renderbuffer(mRenderer, 0, colorbuffer));