1af69d88dSmrg/* 2af69d88dSmrg * Mesa 3-D graphics library 3af69d88dSmrg * 4af69d88dSmrg * Copyright (C) 1999-2005 Brian Paul All Rights Reserved. 5af69d88dSmrg * 6af69d88dSmrg * Permission is hereby granted, free of charge, to any person obtaining a 7af69d88dSmrg * copy of this software and associated documentation files (the "Software"), 8af69d88dSmrg * to deal in the Software without restriction, including without limitation 9af69d88dSmrg * the rights to use, copy, modify, merge, publish, distribute, sublicense, 10af69d88dSmrg * and/or sell copies of the Software, and to permit persons to whom the 11af69d88dSmrg * Software is furnished to do so, subject to the following conditions: 12af69d88dSmrg * 13af69d88dSmrg * The above copyright notice and this permission notice shall be included 14af69d88dSmrg * in all copies or substantial portions of the Software. 15af69d88dSmrg * 16af69d88dSmrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 17af69d88dSmrg * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18af69d88dSmrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19af69d88dSmrg * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20af69d88dSmrg * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21af69d88dSmrg * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22af69d88dSmrg * OTHER DEALINGS IN THE SOFTWARE. 23af69d88dSmrg */ 24af69d88dSmrg 25af69d88dSmrg 26af69d88dSmrg#ifndef S_RENDERBUFFER_H 27af69d88dSmrg#define S_RENDERBUFFER_H 28af69d88dSmrg 29af69d88dSmrg#include "main/glheader.h" 30af69d88dSmrg 31af69d88dSmrg 32af69d88dSmrgstruct gl_context; 33af69d88dSmrgstruct gl_framebuffer; 34af69d88dSmrgstruct gl_renderbuffer; 35af69d88dSmrg 36af69d88dSmrg 37af69d88dSmrgextern struct gl_renderbuffer * 38af69d88dSmrg_swrast_new_soft_renderbuffer(struct gl_context *ctx, GLuint name); 39af69d88dSmrg 40af69d88dSmrgextern void 41af69d88dSmrg_swrast_map_soft_renderbuffer(struct gl_context *ctx, 42af69d88dSmrg struct gl_renderbuffer *rb, 43af69d88dSmrg GLuint x, GLuint y, GLuint w, GLuint h, 44af69d88dSmrg GLbitfield mode, 45af69d88dSmrg GLubyte **out_map, 4601e04c3fSmrg GLint *out_stride, 4701e04c3fSmrg bool flip_y); 48af69d88dSmrg 49af69d88dSmrgextern void 50af69d88dSmrg_swrast_unmap_soft_renderbuffer(struct gl_context *ctx, 51af69d88dSmrg struct gl_renderbuffer *rb); 52af69d88dSmrg 53af69d88dSmrgextern void 54af69d88dSmrg_swrast_set_renderbuffer_accessors(struct gl_renderbuffer *rb); 55af69d88dSmrg 56af69d88dSmrg 57af69d88dSmrgextern void 58af69d88dSmrg_swrast_add_soft_renderbuffers(struct gl_framebuffer *fb, 59af69d88dSmrg GLboolean color, 60af69d88dSmrg GLboolean depth, 61af69d88dSmrg GLboolean stencil, 62af69d88dSmrg GLboolean accum, 637ec681f3Smrg GLboolean alpha); 64af69d88dSmrg 65af69d88dSmrg 66af69d88dSmrg#endif /* S_RENDERBUFFER_H */ 67