Lines Matching defs:srb
71 struct swrast_renderbuffer *srb; /*< The user's colorbuffer */
358 GLubyte *origin = (GLubyte *) osmesa->srb->Buffer;
360 GLint height = osmesa->srb->Base.Height;
365 rowlength = osmesa->srb->Base.Width;
367 bytesPerRow = rowlength * _mesa_get_format_bytes(osmesa->srb->Base.Format);
513 struct swrast_renderbuffer *srb = CALLOC_STRUCT(swrast_renderbuffer);
515 if (srb) {
516 _mesa_init_renderbuffer(&srb->Base, name);
518 srb->Base.ClassID = OSMESA_RENDERBUFFER_CLASS;
519 srb->Base.RefCount = 1;
520 srb->Base.Delete = osmesa_delete_renderbuffer;
521 srb->Base.AllocStorage = osmesa_renderbuffer_storage;
523 srb->Base.InternalFormat = GL_RGBA;
524 srb->Base._BaseFormat = GL_RGBA;
526 return srb;
544 struct swrast_renderbuffer *srb = swrast_renderbuffer(rb);
562 *mapOut = (GLubyte *) srb->Buffer + y * rowStride + x * bpp;
807 if (osmesa->srb)
808 _mesa_reference_renderbuffer((struct gl_renderbuffer **) &osmesa->srb, NULL);
891 if (!osmesa->srb) {
892 osmesa->srb = new_osmesa_renderbuffer(&osmesa->mesa, osmesa->format, type);
895 &osmesa->srb->Base);
896 assert(osmesa->srb->Base.RefCount == 2);
904 osmesa->srb->Buffer = buffer;
905 osmesa->srb->Base.Width = osmesa->srb->Base.Height = 0;
920 &osmesa->srb->Base);
1028 struct swrast_renderbuffer *srb = NULL;
1031 srb = swrast_renderbuffer(c->gl_buffer->
1034 if (!srb || !srb->Buffer) {
1042 *width = srb->Base.Width;
1043 *height = srb->Base.Height;
1048 *buffer = (void *) srb->Buffer;
1066 if (osmesa->srb && osmesa->srb->Buffer) {
1067 *width = osmesa->srb->Base.Width;
1068 *height = osmesa->srb->Base.Height;
1070 *buffer = (void *) osmesa->srb->Buffer;