OSDN Git Service

Added GLAPIENTRY decorations for all first level OpenGL API function entry
[android-x86/external-mesa.git] / src / mesa / main / colortab.h
1 /**
2  * \file colortab.h
3  * Color tables.
4  * 
5  * \if subset
6  * (No-op)
7  *
8  * \endif
9  */
10
11 /*
12  * Mesa 3-D graphics library
13  * Version:  3.5
14  *
15  * Copyright (C) 1999-2001  Brian Paul   All Rights Reserved.
16  *
17  * Permission is hereby granted, free of charge, to any person obtaining a
18  * copy of this software and associated documentation files (the "Software"),
19  * to deal in the Software without restriction, including without limitation
20  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
21  * and/or sell copies of the Software, and to permit persons to whom the
22  * Software is furnished to do so, subject to the following conditions:
23  *
24  * The above copyright notice and this permission notice shall be included
25  * in all copies or substantial portions of the Software.
26  *
27  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
28  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
29  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
30  * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
31  * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
32  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33  */
34
35
36 #ifndef COLORTAB_H
37 #define COLORTAB_H
38
39
40 #include "mtypes.h"
41
42 #if _HAVE_FULL_GL
43
44 extern void GLAPIENTRY
45 _mesa_ColorTable( GLenum target, GLenum internalformat,
46                   GLsizei width, GLenum format, GLenum type,
47                   const GLvoid *table );
48
49 extern void GLAPIENTRY
50 _mesa_ColorSubTable( GLenum target, GLsizei start,
51                      GLsizei count, GLenum format, GLenum type,
52                      const GLvoid *table );
53
54 extern void GLAPIENTRY
55 _mesa_CopyColorSubTable(GLenum target, GLsizei start,
56                         GLint x, GLint y, GLsizei width);
57
58 extern void GLAPIENTRY
59 _mesa_CopyColorTable(GLenum target, GLenum internalformat,
60                      GLint x, GLint y, GLsizei width);
61
62 extern void GLAPIENTRY
63 _mesa_GetColorTable( GLenum target, GLenum format,
64                      GLenum type, GLvoid *table );
65
66 extern void GLAPIENTRY
67 _mesa_ColorTableParameterfv(GLenum target, GLenum pname,
68                             const GLfloat *params);
69
70 extern void GLAPIENTRY
71 _mesa_ColorTableParameteriv(GLenum target, GLenum pname,
72                             const GLint *params);
73
74 extern void GLAPIENTRY
75 _mesa_GetColorTableParameterfv( GLenum target, GLenum pname, GLfloat *params );
76
77 extern void GLAPIENTRY
78 _mesa_GetColorTableParameteriv( GLenum target, GLenum pname, GLint *params );
79
80
81
82 extern void
83 _mesa_init_colortable( struct gl_color_table *table );
84
85 extern void
86 _mesa_free_colortable_data( struct gl_color_table *table );
87
88 extern void 
89 _mesa_init_colortables( GLcontext *ctx );
90
91 extern void 
92 _mesa_free_colortables_data( GLcontext *ctx );
93
94 #else
95
96 /** No-op */
97 #define _mesa_init_colortable( p ) ((void) 0)
98
99 /** No-op */
100 #define _mesa_free_colortable_data( p ) ((void) 0)
101
102 /** No-op */
103 #define _mesa_init_colortables( p ) ((void)0)
104
105 /** No-op */
106 #define _mesa_free_colortables_data( p ) ((void)0)
107
108 #endif
109
110 #endif