1bf215546Sopenharmony_ci/** 2bf215546Sopenharmony_ci * \file enums.h 3bf215546Sopenharmony_ci * Enumeration name/number lookup functions. 4bf215546Sopenharmony_ci * 5bf215546Sopenharmony_ci * \if subset 6bf215546Sopenharmony_ci * (No-op) 7bf215546Sopenharmony_ci * 8bf215546Sopenharmony_ci * \endif 9bf215546Sopenharmony_ci */ 10bf215546Sopenharmony_ci 11bf215546Sopenharmony_ci/* 12bf215546Sopenharmony_ci * Mesa 3-D graphics library 13bf215546Sopenharmony_ci * 14bf215546Sopenharmony_ci * Copyright (C) 1999-2006 Brian Paul All Rights Reserved. 15bf215546Sopenharmony_ci * 16bf215546Sopenharmony_ci * Permission is hereby granted, free of charge, to any person obtaining a 17bf215546Sopenharmony_ci * copy of this software and associated documentation files (the "Software"), 18bf215546Sopenharmony_ci * to deal in the Software without restriction, including without limitation 19bf215546Sopenharmony_ci * the rights to use, copy, modify, merge, publish, distribute, sublicense, 20bf215546Sopenharmony_ci * and/or sell copies of the Software, and to permit persons to whom the 21bf215546Sopenharmony_ci * Software is furnished to do so, subject to the following conditions: 22bf215546Sopenharmony_ci * 23bf215546Sopenharmony_ci * The above copyright notice and this permission notice shall be included 24bf215546Sopenharmony_ci * in all copies or substantial portions of the Software. 25bf215546Sopenharmony_ci * 26bf215546Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 27bf215546Sopenharmony_ci * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 28bf215546Sopenharmony_ci * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 29bf215546Sopenharmony_ci * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 30bf215546Sopenharmony_ci * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 31bf215546Sopenharmony_ci * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 32bf215546Sopenharmony_ci * OTHER DEALINGS IN THE SOFTWARE. 33bf215546Sopenharmony_ci */ 34bf215546Sopenharmony_ci 35bf215546Sopenharmony_ci 36bf215546Sopenharmony_ci#ifndef _ENUMS_H_ 37bf215546Sopenharmony_ci#define _ENUMS_H_ 38bf215546Sopenharmony_ci 39bf215546Sopenharmony_ci 40bf215546Sopenharmony_ci#ifdef __cplusplus 41bf215546Sopenharmony_ciextern "C" { 42bf215546Sopenharmony_ci#endif 43bf215546Sopenharmony_ci 44bf215546Sopenharmony_ci 45bf215546Sopenharmony_ciextern const char *_mesa_enum_to_string( int nr ); 46bf215546Sopenharmony_ci 47bf215546Sopenharmony_ci/* Get the name of an enum given that it is a primitive type. Avoids 48bf215546Sopenharmony_ci * GL_FALSE/GL_POINTS ambiguity and others. 49bf215546Sopenharmony_ci */ 50bf215546Sopenharmony_ciconst char *_mesa_lookup_prim_by_nr( unsigned nr ); 51bf215546Sopenharmony_ci 52bf215546Sopenharmony_ci 53bf215546Sopenharmony_ci#ifdef __cplusplus 54bf215546Sopenharmony_ci} 55bf215546Sopenharmony_ci#endif 56bf215546Sopenharmony_ci 57bf215546Sopenharmony_ci 58bf215546Sopenharmony_ci#endif 59