blob: f4fd4929f733fc4ee7bedfa74713cdc18cec143e [file] [log] [blame]
jtgafb833d1999-08-19 00:55:39 +00001/*
2 * Mesa 3-D graphics library
Jouk Jansen5e3bc0c2000-11-22 07:32:16 +00003 *
Brian145d7622007-08-16 10:05:00 +01004 * Copyright (C) 1999-2007 Brian Paul All Rights Reserved.
Jouk Jansen5e3bc0c2000-11-22 07:32:16 +00005 *
jtgafb833d1999-08-19 00:55:39 +00006 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 * and/or sell copies of the Software, and to permit persons to whom the
11 * Software is furnished to do so, subject to the following conditions:
Jouk Jansen5e3bc0c2000-11-22 07:32:16 +000012 *
jtgafb833d1999-08-19 00:55:39 +000013 * The above copyright notice and this permission notice shall be included
14 * in all copies or substantial portions of the Software.
Jouk Jansen5e3bc0c2000-11-22 07:32:16 +000015 *
jtgafb833d1999-08-19 00:55:39 +000016 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
Kenneth Graunke3d8d5b22013-04-21 13:46:48 -070019 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22 * OTHER DEALINGS IN THE SOFTWARE.
jtgafb833d1999-08-19 00:55:39 +000023 */
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
Vinson Lee42a8af92010-11-07 19:49:12 -080029#include "glheader.h"
jtgafb833d1999-08-19 00:55:39 +000030
Vinson Lee42a8af92010-11-07 19:49:12 -080031struct _glapi_table;
32struct gl_context;
Keith Whitwell6dc85572003-07-17 13:43:59 +000033
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
Kristian Høgsbergf9995b32010-10-12 12:26:10 -040047_mesa_init_attrib( struct gl_context *ctx );
Keith Whitwell6dc85572003-07-17 13:43:59 +000048
Brian145d7622007-08-16 10:05:00 +010049extern void
Kristian Høgsbergf9995b32010-10-12 12:26:10 -040050_mesa_free_attrib_data( struct gl_context *ctx );
Brian145d7622007-08-16 10:05:00 +010051
Chia-I Wu2b36db42009-09-07 18:20:10 +080052#endif /* ATTRIB_H */