Added arbprogram.c to Makefiles.
[mesa.git] / src / mesa / main / nvprogram.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 * Authors:
25 * Brian Paul
26 */
27
28
29 #ifndef NVPROGRAM_H
30 #define NVPROGRAM_H
31
32
33 /** Internal functions **/
34 extern void
35 _mesa_set_program_error(GLcontext *ctx, GLint pos, const char *string);
36
37 extern const GLubyte *
38 _mesa_find_line_column(const GLubyte *string, const GLubyte *pos,
39 GLint *line, GLint *col);
40
41 extern struct program *
42 _mesa_alloc_program(GLcontext *ctx, GLenum target, GLuint id);
43
44 extern void
45 _mesa_delete_program(GLcontext *ctx, struct program *prog);
46
47
48
49 /** API functions **/
50
51 extern void
52 _mesa_BindProgramNV(GLenum target, GLuint id);
53
54 extern void
55 _mesa_DeleteProgramsNV(GLsizei n, const GLuint *ids);
56
57 extern void
58 _mesa_ExecuteProgramNV(GLenum target, GLuint id, const GLfloat *params);
59
60 extern void
61 _mesa_GenProgramsNV(GLsizei n, GLuint *ids);
62
63 extern GLboolean
64 _mesa_AreProgramsResidentNV(GLsizei n, const GLuint *ids, GLboolean *residences);
65
66 extern void
67 _mesa_RequestResidentProgramsNV(GLsizei n, const GLuint *ids);
68
69 extern void
70 _mesa_GetProgramParameterfvNV(GLenum target, GLuint index, GLenum pname, GLfloat *params);
71
72 extern void
73 _mesa_GetProgramParameterdvNV(GLenum target, GLuint index, GLenum pname, GLdouble *params);
74
75 extern void
76 _mesa_GetProgramivNV(GLuint id, GLenum pname, GLint *params);
77
78 extern void
79 _mesa_GetProgramStringNV(GLuint id, GLenum pname, GLubyte *program);
80
81 extern void
82 _mesa_GetTrackMatrixivNV(GLenum target, GLuint address, GLenum pname, GLint *params);
83
84 extern void
85 _mesa_GetVertexAttribdvNV(GLuint index, GLenum pname, GLdouble *params);
86
87 extern void
88 _mesa_GetVertexAttribfvNV(GLuint index, GLenum pname, GLfloat *params);
89
90 extern void
91 _mesa_GetVertexAttribivNV(GLuint index, GLenum pname, GLint *params);
92
93 extern void
94 _mesa_GetVertexAttribPointervNV(GLuint index, GLenum pname, GLvoid **pointer);
95
96 extern GLboolean
97 _mesa_IsProgramNV(GLuint id);
98
99 extern void
100 _mesa_LoadProgramNV(GLenum target, GLuint id, GLsizei len, const GLubyte *program);
101
102 extern void
103 _mesa_ProgramParameter4dNV(GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
104
105 extern void
106 _mesa_ProgramParameter4dvNV(GLenum target, GLuint index, const GLdouble *params);
107
108 extern void
109 _mesa_ProgramParameter4fNV(GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
110
111 extern void
112 _mesa_ProgramParameter4fvNV(GLenum target, GLuint index, const GLfloat *params);
113
114 extern void
115 _mesa_ProgramParameters4dvNV(GLenum target, GLuint index, GLuint num, const GLdouble *params);
116
117 extern void
118 _mesa_ProgramParameters4fvNV(GLenum target, GLuint index, GLuint num, const GLfloat *params);
119
120 extern void
121 _mesa_TrackMatrixNV(GLenum target, GLuint address, GLenum matrix, GLenum transform);
122
123
124 extern void
125 _mesa_ProgramNamedParameter4fNV(GLuint id, GLsizei len, const GLubyte *name,
126 GLfloat x, GLfloat y, GLfloat z, GLfloat w);
127
128 extern void
129 _mesa_ProgramNamedParameter4fvNV(GLuint id, GLsizei len, const GLubyte *name,
130 const float v[]);
131
132 extern void
133 _mesa_ProgramNamedParameter4dNV(GLuint id, GLsizei len, const GLubyte *name,
134 GLdouble x, GLdouble y, GLdouble z, GLdouble w);
135
136 extern void
137 _mesa_ProgramNamedParameter4dvNV(GLuint id, GLsizei len, const GLubyte *name,
138 const double v[]);
139
140 extern void
141 _mesa_GetProgramNamedParameterfvNV(GLuint id, GLsizei len, const GLubyte *name,
142 GLfloat *params);
143
144 extern void
145 _mesa_GetProgramNamedParameterdvNV(GLuint id, GLsizei len, const GLubyte *name,
146 GLdouble *params);
147
148 #if 0
149 extern void
150 _mesa_ProgramLocalParameter4fARB(GLenum target, GLuint index,
151 GLfloat x, GLfloat y, GLfloat z, GLfloat w);
152
153 extern void
154 _mesa_ProgramLocalParameter4fvARB(GLenum target, GLuint index,
155 const GLfloat *params);
156
157 extern void
158 _mesa_ProgramLocalParameter4dARB(GLenum target, GLuint index,
159 GLdouble x, GLdouble y,
160 GLdouble z, GLdouble w);
161
162 extern void
163 _mesa_ProgramLocalParameter4dvARB(GLenum target, GLuint index,
164 const GLdouble *params);
165
166 extern void
167 _mesa_GetProgramLocalParameterfvARB(GLenum target, GLuint index,
168 GLfloat *params);
169
170 extern void
171 _mesa_GetProgramLocalParameterdvARB(GLenum target, GLuint index,
172 GLdouble *params);
173 #endif
174
175
176 #endif