2 * Mesa 3-D graphics library
5 * Copyright (C) 1999-2003 Brian Paul 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 * 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.
32 _mesa_init_program(GLcontext
*ctx
);
36 _mesa_EnableVertexAttribArrayARB(GLuint index
);
40 _mesa_DisableVertexAttribArrayARB(GLuint index
);
44 _mesa_GetVertexAttribdvARB(GLuint index
, GLenum pname
, GLdouble
*params
);
48 _mesa_GetVertexAttribfvARB(GLuint index
, GLenum pname
, GLfloat
*params
);
52 _mesa_GetVertexAttribivARB(GLuint index
, GLenum pname
, GLint
*params
);
56 _mesa_GetVertexAttribPointervARB(GLuint index
, GLenum pname
, GLvoid
**pointer
);
60 _mesa_ProgramStringARB(GLenum target
, GLenum format
, GLsizei len
,
61 const GLvoid
*string
);
65 _mesa_ProgramEnvParameter4dARB(GLenum target
, GLuint index
,
66 GLdouble x
, GLdouble y
, GLdouble z
, GLdouble w
);
70 _mesa_ProgramEnvParameter4dvARB(GLenum target
, GLuint index
,
71 const GLdouble
*params
);
75 _mesa_ProgramEnvParameter4fARB(GLenum target
, GLuint index
,
76 GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
);
80 _mesa_ProgramEnvParameter4fvARB(GLenum target
, GLuint index
,
81 const GLfloat
*params
);
85 _mesa_ProgramLocalParameter4dARB(GLenum target
, GLuint index
,
86 GLdouble x
, GLdouble y
,
87 GLdouble z
, GLdouble w
);
91 _mesa_ProgramLocalParameter4dvARB(GLenum target
, GLuint index
,
92 const GLdouble
*params
);
96 _mesa_ProgramLocalParameter4fARB(GLenum target
, GLuint index
,
97 GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
);
101 _mesa_ProgramLocalParameter4fvARB(GLenum target
, GLuint index
,
102 const GLfloat
*params
);
106 _mesa_GetProgramEnvParameterdvARB(GLenum target
, GLuint index
,
111 _mesa_GetProgramEnvParameterfvARB(GLenum target
, GLuint index
,
116 _mesa_GetProgramLocalParameterdvARB(GLenum target
, GLuint index
,
121 _mesa_GetProgramLocalParameterfvARB(GLenum target
, GLuint index
,
126 _mesa_GetProgramivARB(GLenum target
, GLenum pname
, GLint
*params
);
130 _mesa_GetProgramStringARB(GLenum target
, GLenum pname
, GLvoid
*string
);
134 _mesa_ProgramCallbackMESA(GLenum target
, GLprogramcallbackMESA callback
,
138 _mesa_GetProgramRegisterfvMESA(GLenum target
, GLsizei len
,
139 const GLubyte
*registerName
, GLfloat
*v
);