diff options
author | Brian Paul <[email protected]> | 2012-07-22 11:20:00 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-07-24 08:37:29 -0600 |
commit | a1287f549a3e6527b8cf3bf5b5f563ba63c6f48c (patch) | |
tree | 3f3c3972b10e772c95192a01de897bf86c7e46b8 /src/mesa/main/glformats.h | |
parent | 8b762ebd72c1bb1a9827a667ad55ba9516505adf (diff) |
mesa: move more format helper functions to glformats.c
Diffstat (limited to 'src/mesa/main/glformats.h')
-rw-r--r-- | src/mesa/main/glformats.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/mesa/main/glformats.h b/src/mesa/main/glformats.h index 075b07faa0e..efde4f9ba62 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 */ - |