blob: 2cf8fe693453a12414cb468f85be3714c966d3ab [file] [log] [blame]
jtgafb833d1999-08-19 00:55:39 +00001/*
2 * Mesa 3-D graphics library
Brian145d7622007-08-16 10:05:00 +01003 * Version: 7.1
Jouk Jansen5e3bc0c2000-11-22 07:32:16 +00004 *
Brian145d7622007-08-16 10:05:00 +01005 * Copyright (C) 1999-2007 Brian Paul All Rights Reserved.
Jouk Jansen5e3bc0c2000-11-22 07:32:16 +00006 *
jtgafb833d1999-08-19 00:55:39 +00007 * Permission is hereby granted, free of charge, to any person obtaining a
8 * copy of this software and associated documentation files (the "Software"),
9 * to deal in the Software without restriction, including without limitation
10 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
11 * and/or sell copies of the Software, and to permit persons to whom the
12 * Software is furnished to do so, subject to the following conditions:
Jouk Jansen5e3bc0c2000-11-22 07:32:16 +000013 *
jtgafb833d1999-08-19 00:55:39 +000014 * The above copyright notice and this permission notice shall be included
15 * in all copies or substantial portions of the Software.
Jouk Jansen5e3bc0c2000-11-22 07:32:16 +000016 *
jtgafb833d1999-08-19 00:55:39 +000017 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
21 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 */
24
jtgafb833d1999-08-19 00:55:39 +000025#ifndef ATTRIB_H
Brian Paul6a0db562003-06-12 16:01:42 +000026#define ATTRIB_H
jtgafb833d1999-08-19 00:55:39 +000027
28
Jouk Jansen5e3bc0c2000-11-22 07:32:16 +000029#include "mtypes.h"
jtgafb833d1999-08-19 00:55:39 +000030
Keith Whitwell6dc85572003-07-17 13:43:59 +000031
32#if _HAVE_FULL_GL
33
Kendall Bennettc40d1dd2003-10-21 22:22:17 +000034extern void GLAPIENTRY
Brian Paulfbd8f211999-11-11 01:22:25 +000035_mesa_PushAttrib( GLbitfield mask );
36
Kendall Bennettc40d1dd2003-10-21 22:22:17 +000037extern void GLAPIENTRY
Brian Paulfbd8f211999-11-11 01:22:25 +000038_mesa_PopAttrib( void );
39
Kendall Bennettc40d1dd2003-10-21 22:22:17 +000040extern void GLAPIENTRY
Brian Paulfbd8f211999-11-11 01:22:25 +000041_mesa_PushClientAttrib( GLbitfield mask );
42
Kendall Bennettc40d1dd2003-10-21 22:22:17 +000043extern void GLAPIENTRY
Brian Paulfbd8f211999-11-11 01:22:25 +000044_mesa_PopClientAttrib( void );
45
Keith Whitwell6dc85572003-07-17 13:43:59 +000046extern void
47_mesa_init_attrib( GLcontext *ctx );
48
Brian145d7622007-08-16 10:05:00 +010049extern void
50_mesa_free_attrib_data( GLcontext *ctx );
51
Keith Whitwell6dc85572003-07-17 13:43:59 +000052#else
53
54/** No-op */
55#define _mesa_init_attrib( c ) ((void)0)
Brian145d7622007-08-16 10:05:00 +010056#define _mesa_free_attrib_data( c ) ((void)0)
Keith Whitwell6dc85572003-07-17 13:43:59 +000057
58#endif
Brian Paulfbd8f211999-11-11 01:22:25 +000059
jtgafb833d1999-08-19 00:55:39 +000060#endif