summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_renderbuffer.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-12-05 20:40:48 -0700
committerBrian Paul <[email protected]>2011-12-08 08:56:30 -0700
commit379e0a3ada995b4cf57d142e0dd4618022e0aadc (patch)
treeafad067199d009a899c5964bbf1be83ca48a7b82 /src/mesa/swrast/s_renderbuffer.h
parentff8e6420fbbbd80c8fd7327f2f2b68e016b7f5c0 (diff)
swrast: remove core renderbuffer functions from s_renderbuffer.[ch]
We'll use the functions that live in main/ Plus, rename the remaining functions with "swrast_" prefix. Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/swrast/s_renderbuffer.h')
-rw-r--r--src/mesa/swrast/s_renderbuffer.h74
1 files changed, 22 insertions, 52 deletions
diff --git a/src/mesa/swrast/s_renderbuffer.h b/src/mesa/swrast/s_renderbuffer.h
index 7b7484c8bf3..266ebd9346e 100644
--- a/src/mesa/swrast/s_renderbuffer.h
+++ b/src/mesa/swrast/s_renderbuffer.h
@@ -23,74 +23,44 @@
*/
-#ifndef RENDERBUFFER_H
-#define RENDERBUFFER_H
+#ifndef S_RENDERBUFFER_H
+#define S_RENDERBUFFER_H
+
+#include "main/glheader.h"
-#include "glheader.h"
-#include "mtypes.h"
struct gl_context;
struct gl_framebuffer;
struct gl_renderbuffer;
-extern void
-_mesa_init_renderbuffer(struct gl_renderbuffer *rb, GLuint name);
-
-extern struct gl_renderbuffer *
-_mesa_new_renderbuffer(struct gl_context *ctx, GLuint name);
-
-extern void
-_mesa_delete_renderbuffer(struct gl_renderbuffer *rb);
-
extern struct gl_renderbuffer *
-_mesa_new_soft_renderbuffer(struct gl_context *ctx, GLuint name);
-
-void
-_mesa_map_soft_renderbuffer(struct gl_context *ctx,
- struct gl_renderbuffer *rb,
- GLuint x, GLuint y, GLuint w, GLuint h,
- GLbitfield mode,
- GLubyte **out_map,
- GLint *out_stride);
-
-void
-_mesa_unmap_soft_renderbuffer(struct gl_context *ctx,
- struct gl_renderbuffer *rb);
+_swrast_new_soft_renderbuffer(struct gl_context *ctx, GLuint name);
extern void
-_mesa_set_renderbuffer_accessors(struct gl_renderbuffer *rb);
-
+_swrast_map_soft_renderbuffer(struct gl_context *ctx,
+ struct gl_renderbuffer *rb,
+ GLuint x, GLuint y, GLuint w, GLuint h,
+ GLbitfield mode,
+ GLubyte **out_map,
+ GLint *out_stride);
extern void
-_mesa_add_soft_renderbuffers(struct gl_framebuffer *fb,
- GLboolean color,
- GLboolean depth,
- GLboolean stencil,
- GLboolean accum,
- GLboolean alpha,
- GLboolean aux);
+_swrast_unmap_soft_renderbuffer(struct gl_context *ctx,
+ struct gl_renderbuffer *rb);
extern void
-_mesa_add_renderbuffer(struct gl_framebuffer *fb,
- gl_buffer_index bufferName, struct gl_renderbuffer *rb);
+_swrast_set_renderbuffer_accessors(struct gl_renderbuffer *rb);
-extern void
-_mesa_remove_renderbuffer(struct gl_framebuffer *fb,
- gl_buffer_index bufferName);
extern void
-_mesa_reference_renderbuffer_(struct gl_renderbuffer **ptr,
- struct gl_renderbuffer *rb);
-
-static inline void
-_mesa_reference_renderbuffer(struct gl_renderbuffer **ptr,
- struct gl_renderbuffer *rb)
-{
- if (*ptr != rb)
- _mesa_reference_renderbuffer_(ptr, rb);
-}
-
+_swrast_add_soft_renderbuffers(struct gl_framebuffer *fb,
+ GLboolean color,
+ GLboolean depth,
+ GLboolean stencil,
+ GLboolean accum,
+ GLboolean alpha,
+ GLboolean aux);
-#endif /* RENDERBUFFER_H */
+#endif /* S_RENDERBUFFER_H */