2 * Mesa 3-D graphics library
4 * Copyright (C) 2004-2007 Brian Paul All Rights Reserved.
5 * Copyright (C) 2010 VMware, Inc. All Rights Reserved.
7 * 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:
14 * The above copyright notice and this permission notice shall be included
15 * in all copies or substantial portions of the Software.
17 * 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 * THE AUTHORS 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.
35 _mesa_sizeof_glsl_type(GLenum type
);
38 _mesa_copy_string(GLchar
*dst
, GLsizei maxLength
,
39 GLsizei
*length
, const GLchar
*src
);
42 _mesa_use_program(GLcontext
*ctx
, GLuint program
);
46 _mesa_init_shader_dispatch(struct _glapi_table
*exec
);
50 extern void GLAPIENTRY
51 _mesa_AttachObjectARB(GLhandleARB
, GLhandleARB
);
53 extern void GLAPIENTRY
54 _mesa_CompileShaderARB(GLhandleARB
);
56 extern GLhandleARB GLAPIENTRY
57 _mesa_CreateProgramObjectARB(void);
59 extern GLhandleARB GLAPIENTRY
60 _mesa_CreateShaderObjectARB(GLenum type
);
62 extern void GLAPIENTRY
63 _mesa_DeleteObjectARB(GLhandleARB obj
);
65 extern void GLAPIENTRY
66 _mesa_DetachObjectARB(GLhandleARB
, GLhandleARB
);
68 extern void GLAPIENTRY
69 _mesa_GetAttachedObjectsARB(GLhandleARB
, GLsizei
, GLsizei
*, GLhandleARB
*);
71 extern GLhandleARB GLAPIENTRY
72 _mesa_GetHandleARB(GLenum pname
);
74 extern void GLAPIENTRY
75 _mesa_GetInfoLogARB(GLhandleARB
, GLsizei
, GLsizei
*, GLcharARB
*);
77 extern void GLAPIENTRY
78 _mesa_GetObjectParameterfvARB(GLhandleARB
, GLenum
, GLfloat
*);
80 extern void GLAPIENTRY
81 _mesa_GetObjectParameterivARB(GLhandleARB
, GLenum
, GLint
*);
83 extern void GLAPIENTRY
84 _mesa_GetShaderSourceARB(GLhandleARB
, GLsizei
, GLsizei
*, GLcharARB
*);
86 extern GLboolean GLAPIENTRY
87 _mesa_IsProgram(GLuint name
);
89 extern GLboolean GLAPIENTRY
90 _mesa_IsShader(GLuint name
);
92 extern void GLAPIENTRY
93 _mesa_LinkProgramARB(GLhandleARB programObj
);
95 extern void GLAPIENTRY
96 _mesa_ShaderSourceARB(GLhandleARB
, GLsizei
, const GLcharARB
* *, const GLint
*);
98 extern void GLAPIENTRY
99 _mesa_UseProgramObjectARB(GLhandleARB
);
101 extern void GLAPIENTRY
102 _mesa_ValidateProgramARB(GLhandleARB
);
105 extern void GLAPIENTRY
106 _mesa_BindAttribLocationARB(GLhandleARB
, GLuint
, const GLcharARB
*);
108 extern void GLAPIENTRY
109 _mesa_GetActiveAttribARB(GLhandleARB
, GLuint
, GLsizei
, GLsizei
*, GLint
*,
110 GLenum
*, GLcharARB
*);
112 extern GLint GLAPIENTRY
113 _mesa_GetAttribLocationARB(GLhandleARB
, const GLcharARB
*);
117 extern void GLAPIENTRY
118 _mesa_AttachShader(GLuint program
, GLuint shader
);
120 extern GLuint GLAPIENTRY
121 _mesa_CreateShader(GLenum
);
123 extern GLuint GLAPIENTRY
124 _mesa_CreateProgram(void);
126 extern void GLAPIENTRY
127 _mesa_DeleteProgram(GLuint program
);
129 extern void GLAPIENTRY
130 _mesa_DeleteShader(GLuint shader
);
132 extern void GLAPIENTRY
133 _mesa_DetachShader(GLuint program
, GLuint shader
);
135 extern void GLAPIENTRY
136 _mesa_GetAttachedShaders(GLuint program
, GLsizei maxCount
,
137 GLsizei
*count
, GLuint
*obj
);
139 extern void GLAPIENTRY
140 _mesa_GetProgramiv(GLuint program
, GLenum pname
, GLint
*params
);
142 extern void GLAPIENTRY
143 _mesa_GetProgramInfoLog(GLuint program
, GLsizei bufSize
,
144 GLsizei
*length
, GLchar
*infoLog
);
146 extern void GLAPIENTRY
147 _mesa_GetShaderiv(GLuint shader
, GLenum pname
, GLint
*params
);
149 extern void GLAPIENTRY
150 _mesa_GetShaderInfoLog(GLuint shader
, GLsizei bufSize
,
151 GLsizei
*length
, GLchar
*infoLog
);
154 extern void GLAPIENTRY
155 _mesa_GetShaderPrecisionFormat(GLenum shadertype
, GLenum precisiontype
,
156 GLint
*range
, GLint
*precision
);
158 extern void GLAPIENTRY
159 _mesa_ReleaseShaderCompiler(void);
161 extern void GLAPIENTRY
162 _mesa_ShaderBinary(GLint n
, const GLuint
*shaders
, GLenum binaryformat
,
163 const void* binary
, GLint length
);
166 #endif /* SHADERAPI_H */