Home | History | Annotate | Download | only in libGLESv2

Lines Matching refs:colorAttachment

27     for (unsigned int colorAttachment = 0; colorAttachment < IMPLEMENTATION_MAX_DRAW_BUFFERS; colorAttachment++)
29 mDrawBufferStates[colorAttachment] = GL_NONE;
37 for (unsigned int colorAttachment = 0; colorAttachment < IMPLEMENTATION_MAX_DRAW_BUFFERS; colorAttachment++)
39 mColorbuffers[colorAttachment].set(NULL, GL_NONE, 0, 0);
120 void Framebuffer::setColorbuffer(unsigned int colorAttachment, GLenum type, GLuint colorbuffer, GLint level, GLint layer)
122 ASSERT(colorAttachment < IMPLEMENTATION_MAX_DRAW_BUFFERS);
126 mColorbuffers[colorAttachment].set(attachment, type, level, layer);
130 mColorbuffers[colorAttachment].set(NULL, GL_NONE, 0, 0);
177 for (unsigned int colorAttachment = 0; colorAttachment < IMPLEMENTATION_MAX_DRAW_BUFFERS; colorAttachment++)
179 if (mColorbuffers[colorAttachment].id() == texture &&
180 IsInternalTextureTarget(mColorbuffers[colorAttachment].type(), mRenderer->getCurrentClientVersion()))
182 mColorbuffers[colorAttachment].set(NULL, GL_NONE, 0, 0);
199 for (unsigned int colorAttachment = 0; colorAttachment < IMPLEMENTATION_MAX_DRAW_BUFFERS; colorAttachment++)
201 if (mColorbuffers[colorAttachment].id() == renderbuffer && mColorbuffers[colorAttachment].type() == GL_RENDERBUFFER)
203 mColorbuffers[colorAttachment].set(NULL, GL_NONE, 0, 0);
218 unsigned int Framebuffer::getRenderTargetSerial(unsigned int colorAttachment) const
220 ASSERT(colorAttachment < IMPLEMENTATION_MAX_DRAW_BUFFERS);
222 FramebufferAttachment *colorbuffer = mColorbuffers[colorAttachment].get();
256 FramebufferAttachment *Framebuffer::getColorbuffer(unsigned int colorAttachment) const
258 ASSERT(colorAttachment < IMPLEMENTATION_MAX_DRAW_BUFFERS);
259 return mColorbuffers[colorAttachment].get();
303 for (unsigned int colorAttachment = 0; colorAttachment < IMPLEMENTATION_MAX_DRAW_BUFFERS; colorAttachment++)
305 if (mColorbuffers[colorAttachment].type() != GL_NONE)
307 return mColorbuffers[colorAttachment].get();
314 GLenum Framebuffer::getColorbufferType(unsigned int colorAttachment) const
316 ASSERT(colorAttachment < IMPLEMENTATION_MAX_DRAW_BUFFERS);
317 return mColorbuffers[colorAttachment].type();
335 GLuint Framebuffer::getColorbufferHandle(unsigned int colorAttachment) const
337 ASSERT(colorAttachment < IMPLEMENTATION_MAX_DRAW_BUFFERS);
338 return mColorbuffers[colorAttachment].id();
356 GLenum Framebuffer::getColorbufferMipLevel(unsigned int colorAttachment) const
358 ASSERT(colorAttachment < IMPLEMENTATION_MAX_DRAW_BUFFERS);
359 return mColorbuffers[colorAttachment].mipLevel();
377 GLenum Framebuffer::getColorbufferLayer(unsigned int colorAttachment) const
379 ASSERT(colorAttachment < IMPLEMENTATION_MAX_DRAW_BUFFERS);
380 return mColorbuffers[colorAttachment].layer();
398 GLenum Framebuffer::getDrawBufferState(unsigned int colorAttachment) const
400 return mDrawBufferStates[colorAttachment];
403 void Framebuffer::setDrawBufferState(unsigned int colorAttachment, GLenum drawBuffer)
405 mDrawBufferStates[colorAttachment] = drawBuffer;
408 bool Framebuffer::isEnabledColorAttachment(unsigned int colorAttachment) const
410 return (mColorbuffers[colorAttachment].type() != GL_NONE && mDrawBufferStates[colorAttachment] != GL_NONE);
415 for (unsigned int colorAttachment = 0; colorAttachment < gl::IMPLEMENTATION_MAX_DRAW_BUFFERS; colorAttachment++)
417 if (isEnabledColorAttachment(colorAttachment))
443 for (unsigned int colorAttachment = 1; colorAttachment < IMPLEMENTATION_MAX_DRAW_BUFFERS; colorAttachment++)
445 if (isEnabledColorAttachment(colorAttachment))
463 for (unsigned int colorAttachment = 0; colorAttachment < IMPLEMENTATION_MAX_DRAW_BUFFERS; colorAttachment++)
465 if (mColorbuffers[colorAttachment].type() != GL_NONE)
467 const FramebufferAttachment *colorbuffer = getColorbuffer(colorAttachment);
479 if (mColorbuffers[colorAttachment].type() == GL_RENDERBUFFER)
486 else if (IsInternalTextureTarget(mColorbuffers[colorAttachment].type(), mRenderer->getCurrentClientVersion()))
533 for (unsigned int previousColorAttachment = 0; previousColorAttachment < colorAttachment; previousColorAttachment++)
535 if (mColorbuffers[colorAttachment].get() == mColorbuffers[previousColorAttachment].get())
709 for (unsigned int colorAttachment = 0; colorAttachment < IMPLEMENTATION_MAX_DRAW_BUFFERS; colorAttachment++)
711 if (mColorbuffers[colorAttachment].type() != GL_NONE)
713 return getColorbuffer(colorAttachment)->getSamples();