Restore more code lost during last big merge.
[mesa.git] / src / mesa / main / arbprogram.h
1 /*
2 * Mesa 3-D graphics library
3 * Version: 5.1
4 *
5 * Copyright (C) 1999-2003 Brian Paul All Rights Reserved.
6 *
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:
13 *
14 * The above copyright notice and this permission notice shall be included
15 * in all copies or substantial portions of the Software.
16 *
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.
23 */
24
25
26 #ifndef ARBPROGRAM_H
27 #define ARBPROGRAM_H
28
29 #include "mtypes.h"
30
31 extern void
32 _mesa_init_program(GLcontext *ctx);
33
34
35 extern void
36 _mesa_EnableVertexAttribArrayARB(GLuint index);
37
38
39 extern void
40 _mesa_DisableVertexAttribArrayARB(GLuint index);
41
42
43 extern void
44 _mesa_GetVertexAttribdvARB(GLuint index, GLenum pname, GLdouble *params);
45
46
47 extern void
48 _mesa_GetVertexAttribfvARB(GLuint index, GLenum pname, GLfloat *params);
49
50
51 extern void
52 _mesa_GetVertexAttribivARB(GLuint index, GLenum pname, GLint *params);
53
54
55 extern void
56 _mesa_GetVertexAttribPointervARB(GLuint index, GLenum pname, GLvoid **pointer);
57
58
59 extern void
60 _mesa_ProgramStringARB(GLenum target, GLenum format, GLsizei len,
61 const GLvoid *string);
62
63
64 extern void
65 _mesa_ProgramEnvParameter4dARB(GLenum target, GLuint index,
66 GLdouble x, GLdouble y, GLdouble z, GLdouble w);
67
68
69 extern void
70 _mesa_ProgramEnvParameter4dvARB(GLenum target, GLuint index,
71 const GLdouble *params);
72
73
74 extern void
75 _mesa_ProgramEnvParameter4fARB(GLenum target, GLuint index,
76 GLfloat x, GLfloat y, GLfloat z, GLfloat w);
77
78
79 extern void
80 _mesa_ProgramEnvParameter4fvARB(GLenum target, GLuint index,
81 const GLfloat *params);
82
83
84 extern void
85 _mesa_ProgramLocalParameter4dARB(GLenum target, GLuint index,
86 GLdouble x, GLdouble y,
87 GLdouble z, GLdouble w);
88
89
90 extern void
91 _mesa_ProgramLocalParameter4dvARB(GLenum target, GLuint index,
92 const GLdouble *params);
93
94
95 extern void
96 _mesa_ProgramLocalParameter4fARB(GLenum target, GLuint index,
97 GLfloat x, GLfloat y, GLfloat z, GLfloat w);
98
99
100 extern void
101 _mesa_ProgramLocalParameter4fvARB(GLenum target, GLuint index,
102 const GLfloat *params);
103
104
105 extern void
106 _mesa_GetProgramEnvParameterdvARB(GLenum target, GLuint index,
107 GLdouble *params);
108
109
110 extern void
111 _mesa_GetProgramEnvParameterfvARB(GLenum target, GLuint index,
112 GLfloat *params);
113
114
115 extern void
116 _mesa_GetProgramLocalParameterdvARB(GLenum target, GLuint index,
117 GLdouble *params);
118
119
120 extern void
121 _mesa_GetProgramLocalParameterfvARB(GLenum target, GLuint index,
122 GLfloat *params);
123
124
125 extern void
126 _mesa_GetProgramivARB(GLenum target, GLenum pname, GLint *params);
127
128
129 extern void
130 _mesa_GetProgramStringARB(GLenum target, GLenum pname, GLvoid *string);
131
132
133 extern void
134 _mesa_ProgramCallbackMESA(GLenum target, GLprogramcallbackMESA callback,
135 GLvoid *data);
136
137 extern void
138 _mesa_GetProgramRegisterfvMESA(GLenum target, GLsizei len,
139 const GLubyte *registerName, GLfloat *v);
140
141 #endif