diff options
author | Jordan Justen <[email protected]> | 2012-06-25 10:52:39 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2012-07-21 16:49:42 -0700 |
commit | 9ad8f431b2a47060bf05517246ab0fa8d249c800 (patch) | |
tree | 579bb10a4bd1f1827ff4b38242f1b25d4e01fca0 /src/mesa/main/formats.h | |
parent | e2e7b467d8a6567437823767af74004a396f1c82 (diff) |
mesa: add glformats integer type/format detection routines
_mesa_is_integer_format is moved to formats.c and renamed
as _mesa_is_enum_format_integer.
_mesa_is_format_unsigned, _mesa_is_type_integer,
_mesa_is_type_unsigned, and _mesa_is_enum_format_or_type_integer
are added.
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/formats.h')
-rw-r--r-- | src/mesa/main/formats.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/main/formats.h b/src/mesa/main/formats.h index 3a694a813de..176e0fd18f6 100644 --- a/src/mesa/main/formats.h +++ b/src/mesa/main/formats.h @@ -311,6 +311,9 @@ _mesa_is_format_packed_depth_stencil(gl_format format); extern GLboolean _mesa_is_format_integer_color(gl_format format); +extern GLboolean +_mesa_is_format_unsigned(gl_format format); + extern GLenum _mesa_get_format_color_encoding(gl_format format); @@ -346,7 +349,6 @@ _mesa_format_matches_format_and_type(gl_format gl_format, GLenum format, GLenum type, GLboolean swapBytes); - #ifdef __cplusplus } #endif |