1 /* 2 * Mesa 3-D graphics library 3 * 4 * Copyright (C) 1999-2006 Brian Paul All Rights Reserved. 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a 7 * copy of this software and associated documentation files (the "Software"), 8 * to deal in the Software without restriction, including without limitation 9 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 10 * and/or sell copies of the Software, and to permit persons to whom the 11 * Software is furnished to do so, subject to the following conditions: 12 * 13 * The above copyright notice and this permission notice shall be included 14 * in all copies or substantial portions of the Software. 15 * 16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 17 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 * OTHER DEALINGS IN THE SOFTWARE. 23 */ 24 25 26 #ifndef ARBPROGRAM_H 27 #define ARBPROGRAM_H 28 29 30 #include "glheader.h" 31 32 33 extern void GLAPIENTRY 34 _mesa_BindProgramARB(GLenum target, GLuint id); 35 36 extern void GLAPIENTRY 37 _mesa_DeleteProgramsARB(GLsizei n, const GLuint *ids); 38 39 extern void GLAPIENTRY 40 _mesa_GenProgramsARB(GLsizei n, GLuint *ids); 41 42 43 extern GLboolean GLAPIENTRY 44 _mesa_IsProgramARB(GLuint id); 45 46 47 extern void GLAPIENTRY 48 _mesa_ProgramStringARB(GLenum target, GLenum format, GLsizei len, 49 const GLvoid *string); 50 51 extern void GLAPIENTRY 52 _mesa_NamedProgramStringEXT(GLuint program, GLenum target, GLenum format, 53 GLsizei len, const GLvoid *string); 54 55 extern void GLAPIENTRY 56 _mesa_ProgramEnvParameter4dARB(GLenum target, GLuint index, 57 GLdouble x, GLdouble y, GLdouble z, GLdouble w); 58 59 60 extern void GLAPIENTRY 61 _mesa_ProgramEnvParameter4dvARB(GLenum target, GLuint index, 62 const GLdouble *params); 63 64 65 extern void GLAPIENTRY 66 _mesa_ProgramEnvParameter4fARB(GLenum target, GLuint index, 67 GLfloat x, GLfloat y, GLfloat z, GLfloat w); 68 69 70 extern void GLAPIENTRY 71 _mesa_ProgramEnvParameter4fvARB(GLenum target, GLuint index, 72 const GLfloat *params); 73 74 75 extern void GLAPIENTRY 76 _mesa_ProgramEnvParameters4fvEXT(GLenum target, GLuint index, GLsizei count, 77 const GLfloat *params); 78 79 80 extern void GLAPIENTRY 81 _mesa_ProgramLocalParameter4dARB(GLenum target, GLuint index, 82 GLdouble x, GLdouble y, 83 GLdouble z, GLdouble w); 84 85 86 extern void GLAPIENTRY 87 _mesa_ProgramLocalParameter4dvARB(GLenum target, GLuint index, 88 const GLdouble *params); 89 90 91 extern void GLAPIENTRY 92 _mesa_ProgramLocalParameter4fARB(GLenum target, GLuint index, 93 GLfloat x, GLfloat y, GLfloat z, GLfloat w); 94 95 96 extern void GLAPIENTRY 97 _mesa_NamedProgramLocalParameter4fvEXT(GLuint program, GLenum target, 98 GLuint index, const GLfloat *params); 99 100 extern void GLAPIENTRY 101 _mesa_NamedProgramLocalParameter4dEXT(GLuint program, GLenum target, 102 GLuint index, GLdouble x, GLdouble y, 103 GLdouble z, GLdouble w); 104 105 extern void GLAPIENTRY 106 _mesa_NamedProgramLocalParameter4dvEXT(GLuint program, GLenum target, 107 GLuint index, const GLdouble *params); 108 109 110 extern void GLAPIENTRY 111 _mesa_NamedProgramLocalParameter4fEXT(GLuint program, GLenum target, 112 GLuint index, GLfloat x, GLfloat y, 113 GLfloat z, GLfloat w); 114 115 116 extern void GLAPIENTRY 117 _mesa_ProgramLocalParameter4fvARB(GLenum target, GLuint index, 118 const GLfloat *params); 119 120 extern void GLAPIENTRY 121 _mesa_ProgramLocalParameters4fvEXT(GLenum target, GLuint index, GLsizei count, 122 const GLfloat *params); 123 124 extern void GLAPIENTRY 125 _mesa_NamedProgramLocalParameters4fvEXT(GLuint program, GLenum target, GLuint index, 126 GLsizei count, const GLfloat *params); 127 128 extern void GLAPIENTRY 129 _mesa_GetProgramEnvParameterdvARB(GLenum target, GLuint index, 130 GLdouble *params); 131 132 133 extern void GLAPIENTRY 134 _mesa_GetProgramEnvParameterfvARB(GLenum target, GLuint index, 135 GLfloat *params); 136 137 138 extern void GLAPIENTRY 139 _mesa_GetProgramLocalParameterdvARB(GLenum target, GLuint index, 140 GLdouble *params); 141 142 extern void GLAPIENTRY 143 _mesa_GetNamedProgramLocalParameterdvEXT(GLuint program, GLenum target, 144 GLuint index, GLdouble *params); 145 146 extern void GLAPIENTRY 147 _mesa_GetProgramLocalParameterfvARB(GLenum target, GLuint index, 148 GLfloat *params); 149 150 extern void GLAPIENTRY 151 _mesa_GetNamedProgramLocalParameterfvEXT(GLuint program, GLenum target, 152 GLuint index, GLfloat *params); 153 154 extern void GLAPIENTRY 155 _mesa_GetProgramivARB(GLenum target, GLenum pname, GLint *params); 156 157 extern void GLAPIENTRY 158 _mesa_GetNamedProgramivEXT(GLuint program, GLenum target, GLenum pname, 159 GLint *params); 160 161 extern void GLAPIENTRY 162 _mesa_GetProgramStringARB(GLenum target, GLenum pname, GLvoid *string); 163 164 extern void GLAPIENTRY 165 _mesa_GetNamedProgramStringEXT(GLuint program, GLenum target, 166 GLenum pname, GLvoid *string); 167 168 #endif 169