First batch of code for GL_NV_fragment_program.
[mesa.git] / src / mesa / main / nvprogram.h
1 /* $Id: nvprogram.h,v 1.1 2003/01/14 04:55:46 brianp Exp $ */
2
3 /*
4 * Mesa 3-D graphics library
5 * Version: 5.1
6 *
7 * Copyright (C) 1999-2001 Brian Paul All Rights Reserved.
8 *
9 * Permission is hereby granted, free of charge, to any person obtaining a
10 * copy of this software and associated documentation files (the "Software"),
11 * to deal in the Software without restriction, including without limitation
12 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13 * and/or sell copies of the Software, and to permit persons to whom the
14 * Software is furnished to do so, subject to the following conditions:
15 *
16 * The above copyright notice and this permission notice shall be included
17 * in all copies or substantial portions of the Software.
18 *
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
22 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
23 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 *
26 * Authors:
27 * Brian Paul
28 */
29
30
31 #ifndef NVPROGRAM_H
32 #define NVPROGRAM_H
33
34
35 extern void
36 _mesa_set_program_error(GLcontext *ctx, GLint pos, const char *string);
37
38 extern void
39 _mesa_delete_program(GLcontext *ctx, GLuint id);
40
41
42 extern void
43 _mesa_BindProgramNV(GLenum target, GLuint id);
44
45 extern void
46 _mesa_DeleteProgramsNV(GLsizei n, const GLuint *ids);
47
48 extern void
49 _mesa_ExecuteProgramNV(GLenum target, GLuint id, const GLfloat *params);
50
51 extern void
52 _mesa_GenProgramsNV(GLsizei n, GLuint *ids);
53
54 extern GLboolean
55 _mesa_AreProgramsResidentNV(GLsizei n, const GLuint *ids, GLboolean *residences);
56
57 extern void
58 _mesa_RequestResidentProgramsNV(GLsizei n, const GLuint *ids);
59
60
61 extern void
62 _mesa_GetProgramParameterfvNV(GLenum target, GLuint index, GLenum pname, GLfloat *params);
63
64 extern void
65 _mesa_GetProgramParameterdvNV(GLenum target, GLuint index, GLenum pname, GLdouble *params);
66
67 extern void
68 _mesa_GetProgramivNV(GLuint id, GLenum pname, GLint *params);
69
70 extern void
71 _mesa_GetProgramStringNV(GLuint id, GLenum pname, GLubyte *program);
72
73 extern void
74 _mesa_GetTrackMatrixivNV(GLenum target, GLuint address, GLenum pname, GLint *params);
75
76 extern void
77 _mesa_GetVertexAttribdvNV(GLuint index, GLenum pname, GLdouble *params);
78
79 extern void
80 _mesa_GetVertexAttribfvNV(GLuint index, GLenum pname, GLfloat *params);
81
82 extern void
83 _mesa_GetVertexAttribivNV(GLuint index, GLenum pname, GLint *params);
84
85 extern void
86 _mesa_GetVertexAttribPointervNV(GLuint index, GLenum pname, GLvoid **pointer);
87
88 extern GLboolean
89 _mesa_IsProgramNV(GLuint id);
90
91 extern void
92 _mesa_LoadProgramNV(GLenum target, GLuint id, GLsizei len, const GLubyte *program);
93
94 extern void
95 _mesa_ProgramParameter4dNV(GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
96
97 extern void
98 _mesa_ProgramParameter4dvNV(GLenum target, GLuint index, const GLdouble *params);
99
100 extern void
101 _mesa_ProgramParameter4fNV(GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
102
103 extern void
104 _mesa_ProgramParameter4fvNV(GLenum target, GLuint index, const GLfloat *params);
105
106 extern void
107 _mesa_ProgramParameters4dvNV(GLenum target, GLuint index, GLuint num, const GLdouble *params);
108
109 extern void
110 _mesa_ProgramParameters4fvNV(GLenum target, GLuint index, GLuint num, const GLfloat *params);
111
112 extern void
113 _mesa_TrackMatrixNV(GLenum target, GLuint address, GLenum matrix, GLenum transform);
114
115
116 extern void
117 _mesa_VertexAttribs1svNV(GLuint index, GLsizei n, const GLshort *v);
118
119 extern void
120 _mesa_VertexAttribs1fvNV(GLuint index, GLsizei n, const GLfloat *v);
121
122 extern void
123 _mesa_VertexAttribs1dvNV(GLuint index, GLsizei n, const GLdouble *v);
124
125 extern void
126 _mesa_VertexAttribs2svNV(GLuint index, GLsizei n, const GLshort *v);
127
128 extern void
129 _mesa_VertexAttribs2fvNV(GLuint index, GLsizei n, const GLfloat *v);
130
131 extern void
132 _mesa_VertexAttribs2dvNV(GLuint index, GLsizei n, const GLdouble *v);
133
134 extern void
135 _mesa_VertexAttribs3svNV(GLuint index, GLsizei n, const GLshort *v);
136
137 extern void
138 _mesa_VertexAttribs3fvNV(GLuint index, GLsizei n, const GLfloat *v);
139
140 extern void
141 _mesa_VertexAttribs3dvNV(GLuint index, GLsizei n, const GLdouble *v);
142
143 extern void
144 _mesa_VertexAttribs4svNV(GLuint index, GLsizei n, const GLshort *v);
145
146 extern void
147 _mesa_VertexAttribs4fvNV(GLuint index, GLsizei n, const GLfloat *v);
148
149 extern void
150 _mesa_VertexAttribs4dvNV(GLuint index, GLsizei n, const GLdouble *v);
151
152 extern void
153 _mesa_VertexAttribs4ubvNV(GLuint index, GLsizei n, const GLubyte *v);
154
155
156 #endif