summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/glformats.h
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2012-07-22 11:20:00 -0600
committerBrian Paul <brianp@vmware.com>2012-07-24 08:37:29 -0600
commita1287f549a3e6527b8cf3bf5b5f563ba63c6f48c (patch)
tree3f3c3972b10e772c95192a01de897bf86c7e46b8 /src/mesa/main/glformats.h
parent8b762ebd72c1bb1a9827a667ad55ba9516505adf (diff)
downloadexternal_mesa3d-a1287f549a3e6527b8cf3bf5b5f563ba63c6f48c.zip
external_mesa3d-a1287f549a3e6527b8cf3bf5b5f563ba63c6f48c.tar.gz
external_mesa3d-a1287f549a3e6527b8cf3bf5b5f563ba63c6f48c.tar.bz2
mesa: move more format helper functions to glformats.c
Diffstat (limited to 'src/mesa/main/glformats.h')
-rw-r--r--src/mesa/main/glformats.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/mesa/main/glformats.h b/src/mesa/main/glformats.h
index 075b07f..efde4f9 100644
--- a/src/mesa/main/glformats.h
+++ b/src/mesa/main/glformats.h
@@ -35,6 +35,21 @@ extern "C" {
#endif
extern GLboolean
+_mesa_type_is_packed(GLenum type);
+
+extern GLint
+_mesa_sizeof_type( GLenum type );
+
+extern GLint
+_mesa_sizeof_packed_type( GLenum type );
+
+extern GLint
+_mesa_components_in_format( GLenum format );
+
+extern GLint
+_mesa_bytes_per_pixel( GLenum format, GLenum type );
+
+extern GLboolean
_mesa_is_type_integer(GLenum type);
extern GLboolean
@@ -73,9 +88,12 @@ _mesa_is_compressed_format(struct gl_context *ctx, GLenum format);
extern GLenum
_mesa_base_format_to_integer_format(GLenum format);
+extern GLboolean
+_mesa_base_format_has_channel(GLenum base_format, GLenum pname);
+
+
#ifdef __cplusplus
}
#endif
#endif /* GLFORMATS_H */
-