diff options
author | Keith Whitwell <[email protected]> | 2009-06-30 12:13:50 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2009-06-30 12:13:59 +0100 |
commit | aa688d1579776494640475f4a5b93f3d7fae4fcd (patch) | |
tree | 62caefd530d48247b81fec0342800cf43b4638b6 /src/mesa/main/enums.h | |
parent | 8d24160a404b946e5eb21329117c7f128d93a4e2 (diff) |
mesa: add debug printer for primitive name
Add a simple version of _mesa_lookup_enum_by_nr() which expects a primitive
enum (GL_POINTS..GL_POLYGON). This avoids some annoying duplicates
when looking up primitives, such as the GL_FALSE/GL_POINTS clash.
Diffstat (limited to 'src/mesa/main/enums.h')
-rw-r--r-- | src/mesa/main/enums.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/enums.h b/src/mesa/main/enums.h index 23a4767f350..b5f69001b84 100644 --- a/src/mesa/main/enums.h +++ b/src/mesa/main/enums.h @@ -40,6 +40,12 @@ #if defined(_HAVE_FULL_GL) && _HAVE_FULL_GL extern const char *_mesa_lookup_enum_by_nr( int nr ); + +/* Get the name of an enum given that it is a primitive type. Avoids + * GL_FALSE/GL_POINTS ambiguity and others. + */ +const char *_mesa_lookup_prim_by_nr( int nr ); + extern int _mesa_lookup_enum_by_name( const char *symbol ); #else |