1 /* $Id: nvprogram.h,v 1.4 2003/02/25 19:30:29 brianp Exp $ */
4 * Mesa 3-D graphics library
7 * Copyright (C) 1999-2003 Brian Paul All Rights Reserved.
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:
16 * The above copyright notice and this permission notice shall be included
17 * in all copies or substantial portions of the Software.
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.
43 _mesa_add_symbol(struct symbol_table
*symbolTable
,
44 const char *name
, enum symbol_type type
,
45 const GLfloat
*value
);
48 _mesa_lookup_symbol(const struct symbol_table
*symbolTable
,
49 const char *name
, GLfloat
*value
);
52 _mesa_assign_program_registers(struct symbol_table
*symbolTable
);
56 _mesa_set_program_error(GLcontext
*ctx
, GLint pos
, const char *string
);
58 extern const GLubyte
*
59 _mesa_find_line_column(const GLubyte
*string
, const GLubyte
*pos
,
60 GLint
*line
, GLint
*col
);
63 _mesa_delete_program(GLcontext
*ctx
, GLuint id
);
67 _mesa_BindProgramNV(GLenum target
, GLuint id
);
70 _mesa_DeleteProgramsNV(GLsizei n
, const GLuint
*ids
);
73 _mesa_ExecuteProgramNV(GLenum target
, GLuint id
, const GLfloat
*params
);
76 _mesa_GenProgramsNV(GLsizei n
, GLuint
*ids
);
79 _mesa_AreProgramsResidentNV(GLsizei n
, const GLuint
*ids
, GLboolean
*residences
);
82 _mesa_RequestResidentProgramsNV(GLsizei n
, const GLuint
*ids
);
86 _mesa_GetProgramParameterfvNV(GLenum target
, GLuint index
, GLenum pname
, GLfloat
*params
);
89 _mesa_GetProgramParameterdvNV(GLenum target
, GLuint index
, GLenum pname
, GLdouble
*params
);
92 _mesa_GetProgramivNV(GLuint id
, GLenum pname
, GLint
*params
);
95 _mesa_GetProgramStringNV(GLuint id
, GLenum pname
, GLubyte
*program
);
98 _mesa_GetTrackMatrixivNV(GLenum target
, GLuint address
, GLenum pname
, GLint
*params
);
101 _mesa_GetVertexAttribdvNV(GLuint index
, GLenum pname
, GLdouble
*params
);
104 _mesa_GetVertexAttribfvNV(GLuint index
, GLenum pname
, GLfloat
*params
);
107 _mesa_GetVertexAttribivNV(GLuint index
, GLenum pname
, GLint
*params
);
110 _mesa_GetVertexAttribPointervNV(GLuint index
, GLenum pname
, GLvoid
**pointer
);
113 _mesa_IsProgramNV(GLuint id
);
116 _mesa_LoadProgramNV(GLenum target
, GLuint id
, GLsizei len
, const GLubyte
*program
);
119 _mesa_ProgramParameter4dNV(GLenum target
, GLuint index
, GLdouble x
, GLdouble y
, GLdouble z
, GLdouble w
);
122 _mesa_ProgramParameter4dvNV(GLenum target
, GLuint index
, const GLdouble
*params
);
125 _mesa_ProgramParameter4fNV(GLenum target
, GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
);
128 _mesa_ProgramParameter4fvNV(GLenum target
, GLuint index
, const GLfloat
*params
);
131 _mesa_ProgramParameters4dvNV(GLenum target
, GLuint index
, GLuint num
, const GLdouble
*params
);
134 _mesa_ProgramParameters4fvNV(GLenum target
, GLuint index
, GLuint num
, const GLfloat
*params
);
137 _mesa_TrackMatrixNV(GLenum target
, GLuint address
, GLenum matrix
, GLenum transform
);
141 _mesa_VertexAttribs1svNV(GLuint index
, GLsizei n
, const GLshort
*v
);
144 _mesa_VertexAttribs1fvNV(GLuint index
, GLsizei n
, const GLfloat
*v
);
147 _mesa_VertexAttribs1dvNV(GLuint index
, GLsizei n
, const GLdouble
*v
);
150 _mesa_VertexAttribs2svNV(GLuint index
, GLsizei n
, const GLshort
*v
);
153 _mesa_VertexAttribs2fvNV(GLuint index
, GLsizei n
, const GLfloat
*v
);
156 _mesa_VertexAttribs2dvNV(GLuint index
, GLsizei n
, const GLdouble
*v
);
159 _mesa_VertexAttribs3svNV(GLuint index
, GLsizei n
, const GLshort
*v
);
162 _mesa_VertexAttribs3fvNV(GLuint index
, GLsizei n
, const GLfloat
*v
);
165 _mesa_VertexAttribs3dvNV(GLuint index
, GLsizei n
, const GLdouble
*v
);
168 _mesa_VertexAttribs4svNV(GLuint index
, GLsizei n
, const GLshort
*v
);
171 _mesa_VertexAttribs4fvNV(GLuint index
, GLsizei n
, const GLfloat
*v
);
174 _mesa_VertexAttribs4dvNV(GLuint index
, GLsizei n
, const GLdouble
*v
);
177 _mesa_VertexAttribs4ubvNV(GLuint index
, GLsizei n
, const GLubyte
*v
);