From f1a2aa5cb338766d7a612b2c82c7ec588ed23d0b Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 24 Dec 2011 08:54:26 -0700 Subject: mesa: add _mesa_pack_colormask() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For generating bit-wise colormasks for arbitrary pixel formats. Reviewed-by: José Fonseca --- src/mesa/main/format_pack.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mesa/main/format_pack.h') diff --git a/src/mesa/main/format_pack.h b/src/mesa/main/format_pack.h index 7df1356321c..f1b48051065 100644 --- a/src/mesa/main/format_pack.h +++ b/src/mesa/main/format_pack.h @@ -95,4 +95,7 @@ _mesa_pack_uint_24_8_depth_stencil_row(gl_format format, GLuint n, const GLuint *src, void *dst); +extern void +_mesa_pack_colormask(gl_format format, const GLubyte colorMask[4], void *dst); + #endif -- cgit v1.2.3