Lines Matching refs:RENDERBUFFER
222 GL_APICALL void GL_APIENTRY glBindRenderbuffer(GLenum target, GLuint renderbuffer){
226 GLuint globalRenderBufferName = renderbuffer;
227 if(renderbuffer && ctx->shareGroup().Ptr()){
228 globalRenderBufferName = ctx->shareGroup()->getGlobalName(RENDERBUFFER,renderbuffer);
229 //if renderbuffer wasn't generated before,generate one
231 ctx->shareGroup()->genName(RENDERBUFFER,renderbuffer);
232 ctx->shareGroup()->setObjectData(RENDERBUFFER,
233 renderbuffer,
235 globalRenderBufferName = ctx->shareGroup()->getGlobalName(RENDERBUFFER,renderbuffer);
240 // update renderbuffer binding state
241 ctx->setRenderbufferBinding(renderbuffer);
460 const GLuint globalRenderBufferName = ctx->shareGroup()->getGlobalName(RENDERBUFFER,renderbuffers[i]);
461 ctx->shareGroup()->deleteName(RENDERBUFFER,renderbuffers[i]);
643 GL_APICALL void GL_APIENTRY glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer){
653 // generate the renderbuffer object if not yet exist
654 if(renderbuffer) {
655 if (!ctx->shareGroup()->isObject(RENDERBUFFER,renderbuffer)) {
656 ctx->shareGroup()->genName(RENDERBUFFER,renderbuffer);
658 ctx->shareGroup()->setObjectData(RENDERBUFFER,
659 renderbuffer, obj);
662 obj = ctx->shareGroup()->getObjectData(RENDERBUFFER, renderbuffer);
665 globalRenderbufferName = ctx->shareGroup()->getGlobalName(RENDERBUFFER,renderbuffer);
673 fbData->setAttachment(attachment, renderbuffertarget, renderbuffer, obj);
676 if (renderbuffer && obj.Ptr() != NULL) {
680 // This renderbuffer object is an eglImage target
681 // attach the eglimage's texture instead the renderbuffer.
765 renderbuffers[i] = ctx->shareGroup()->genName(RENDERBUFFER, 0, true);
766 ctx->shareGroup()->setObjectData(RENDERBUFFER,
970 *params = ctx->shareGroup()->getLocalName(RENDERBUFFER,i);
1077 // If this is a renderbuffer which is eglimage's target, we
1082 ObjectDataPtr objData = ctx->shareGroup()->getObjectData(RENDERBUFFER,rb);
1518 GL_APICALL GLboolean GL_APIENTRY glIsRenderbuffer(GLuint renderbuffer){
1520 if(renderbuffer && ctx->shareGroup().Ptr()){
1521 return ctx->shareGroup()->isObject(RENDERBUFFER,renderbuffer) ? GL_TRUE :GL_FALSE;
1642 // Get current bounded renderbuffer
1643 // raise INVALID_OPERATIOn if no renderbuffer is bounded
1646 ObjectDataPtr objData = ctx->shareGroup()->getObjectData(RENDERBUFFER,rb);
1651 // if the renderbuffer was an eglImage target, detach from
2052 // Get current bounded renderbuffer
2053 // raise INVALID_OPERATIOn if no renderbuffer is bounded
2056 ObjectDataPtr objData = ctx->shareGroup()->getObjectData(RENDERBUFFER,rb);
2068 // if the renderbuffer is attached to a framebuffer