Michal Krol | c1fe469 | 2004-10-27 17:09:10 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Mesa 3-D graphics library |
| 3 | * Version: 6.1 |
| 4 | * |
| 5 | * Copyright (C) 2004 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 | #include "glheader.h" |
| 27 | #include "shaderobjects.h" |
| 28 | #include "mtypes.h" |
| 29 | #include "context.h" |
| 30 | #include "macros.h" |
| 31 | |
| 32 | void GLAPIENTRY |
| 33 | _mesa_DeleteObjectARB(GLhandleARB obj) |
| 34 | { |
| 35 | } |
| 36 | |
| 37 | GLhandleARB GLAPIENTRY |
| 38 | _mesa_GetHandleARB(GLenum pname) |
| 39 | { |
| 40 | return 0; |
| 41 | } |
| 42 | |
| 43 | void GLAPIENTRY |
| 44 | _mesa_DetachObjectARB (GLhandleARB containerObj, GLhandleARB attachedObj) |
| 45 | { |
| 46 | } |
| 47 | |
| 48 | GLhandleARB GLAPIENTRY |
| 49 | _mesa_CreateShaderObjectARB (GLenum shaderType) |
| 50 | { |
| 51 | return 0; |
| 52 | } |
| 53 | |
| 54 | void GLAPIENTRY |
| 55 | _mesa_ShaderSourceARB (GLhandleARB shaderObj, GLsizei count, |
| 56 | const GLcharARB **string, const GLint *length) |
| 57 | { |
| 58 | } |
| 59 | |
| 60 | void GLAPIENTRY |
| 61 | _mesa_CompileShaderARB (GLhandleARB shaderObj) |
| 62 | { |
| 63 | } |
| 64 | |
| 65 | GLhandleARB GLAPIENTRY |
| 66 | _mesa_CreateProgramObjectARB (void) |
| 67 | { |
| 68 | return 0; |
| 69 | } |
| 70 | |
| 71 | void GLAPIENTRY |
| 72 | _mesa_AttachObjectARB (GLhandleARB containerObj, GLhandleARB obj) |
| 73 | { |
| 74 | } |
| 75 | |
| 76 | void GLAPIENTRY |
| 77 | _mesa_LinkProgramARB (GLhandleARB programObj) |
| 78 | { |
| 79 | } |
| 80 | |
Brian Paul | 59651a0 | 2004-11-26 13:34:45 +0000 | [diff] [blame^] | 81 | #if 0 |
Michal Krol | c1fe469 | 2004-10-27 17:09:10 +0000 | [diff] [blame] | 82 | GLboolean |
| 83 | _mesa_use_program_object( GLcontext *ctx, struct gl_program_object *pobj ) |
| 84 | { |
| 85 | return GL_FALSE; |
| 86 | } |
Brian Paul | 59651a0 | 2004-11-26 13:34:45 +0000 | [diff] [blame^] | 87 | #endif |
Michal Krol | c1fe469 | 2004-10-27 17:09:10 +0000 | [diff] [blame] | 88 | |
| 89 | void GLAPIENTRY |
| 90 | _mesa_UseProgramObjectARB (GLhandleARB programObj) |
| 91 | { |
| 92 | } |
| 93 | |
| 94 | void GLAPIENTRY |
| 95 | _mesa_ValidateProgramARB (GLhandleARB programObj) |
| 96 | { |
| 97 | } |
| 98 | |
| 99 | void GLAPIENTRY |
| 100 | _mesa_Uniform1fARB (GLint location, GLfloat v0) |
| 101 | { |
| 102 | } |
| 103 | |
| 104 | void GLAPIENTRY |
| 105 | _mesa_Uniform2fARB (GLint location, GLfloat v0, GLfloat v1) |
| 106 | { |
| 107 | } |
| 108 | |
| 109 | void GLAPIENTRY |
| 110 | _mesa_Uniform3fARB (GLint location, GLfloat v0, GLfloat v1, GLfloat v2) |
| 111 | { |
| 112 | } |
| 113 | |
| 114 | void GLAPIENTRY |
| 115 | _mesa_Uniform4fARB (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3) |
| 116 | { |
| 117 | } |
| 118 | |
| 119 | void GLAPIENTRY |
| 120 | _mesa_Uniform1iARB (GLint location, GLint v0) |
| 121 | { |
| 122 | } |
| 123 | |
| 124 | void GLAPIENTRY |
| 125 | _mesa_Uniform2iARB (GLint location, GLint v0, GLint v1) |
| 126 | { |
| 127 | } |
| 128 | |
| 129 | void GLAPIENTRY |
| 130 | _mesa_Uniform3iARB (GLint location, GLint v0, GLint v1, GLint v2) |
| 131 | { |
| 132 | } |
| 133 | |
| 134 | void GLAPIENTRY |
| 135 | _mesa_Uniform4iARB (GLint location, GLint v0, GLint v1, GLint v2, GLint v3) |
| 136 | { |
| 137 | } |
| 138 | |
| 139 | void GLAPIENTRY |
| 140 | _mesa_Uniform1fvARB (GLint location, GLsizei count, const GLfloat *value) |
| 141 | { |
| 142 | } |
| 143 | |
| 144 | void GLAPIENTRY |
| 145 | _mesa_Uniform2fvARB (GLint location, GLsizei count, const GLfloat *value) |
| 146 | { |
| 147 | } |
| 148 | |
| 149 | void GLAPIENTRY |
| 150 | _mesa_Uniform3fvARB (GLint location, GLsizei count, const GLfloat *value) |
| 151 | { |
| 152 | } |
| 153 | |
| 154 | void GLAPIENTRY |
| 155 | _mesa_Uniform4fvARB (GLint location, GLsizei count, const GLfloat *value) |
| 156 | { |
| 157 | } |
| 158 | |
| 159 | void GLAPIENTRY |
| 160 | _mesa_Uniform1ivARB (GLint location, GLsizei count, const GLint *value) |
| 161 | { |
| 162 | } |
| 163 | |
| 164 | void GLAPIENTRY |
| 165 | _mesa_Uniform2ivARB (GLint location, GLsizei count, const GLint *value) |
| 166 | { |
| 167 | } |
| 168 | |
| 169 | void GLAPIENTRY |
| 170 | _mesa_Uniform3ivARB (GLint location, GLsizei count, const GLint *value) |
| 171 | { |
| 172 | } |
| 173 | |
| 174 | void GLAPIENTRY |
| 175 | _mesa_Uniform4ivARB (GLint location, GLsizei count, const GLint *value) |
| 176 | { |
| 177 | } |
| 178 | |
| 179 | void GLAPIENTRY |
| 180 | _mesa_UniformMatrix2fvARB (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) |
| 181 | { |
| 182 | } |
| 183 | |
| 184 | void GLAPIENTRY |
| 185 | _mesa_UniformMatrix3fvARB (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) |
| 186 | { |
| 187 | } |
| 188 | |
| 189 | void GLAPIENTRY |
| 190 | _mesa_UniformMatrix4fvARB (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) |
| 191 | { |
| 192 | } |
| 193 | |
| 194 | void GLAPIENTRY |
| 195 | _mesa_GetObjectParameterfvARB (GLhandleARB obj, GLenum pname, GLfloat *params) |
| 196 | { |
| 197 | } |
| 198 | |
| 199 | void GLAPIENTRY |
| 200 | _mesa_GetObjectParameterivARB (GLhandleARB obj, GLenum pname, GLint *params) |
| 201 | { |
| 202 | } |
| 203 | |
| 204 | void GLAPIENTRY |
| 205 | _mesa_GetInfoLogARB (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *infoLog) |
| 206 | { |
| 207 | } |
| 208 | |
| 209 | void GLAPIENTRY |
| 210 | _mesa_GetAttachedObjectsARB (GLhandleARB containerObj, GLsizei maxCount, GLsizei *count, GLhandleARB *obj) |
| 211 | { |
| 212 | } |
| 213 | |
| 214 | GLint GLAPIENTRY |
| 215 | _mesa_GetUniformLocationARB (GLhandleARB programObj, const GLcharARB *name) |
| 216 | { |
| 217 | return -1; |
| 218 | } |
| 219 | |
| 220 | void GLAPIENTRY |
| 221 | _mesa_GetActiveUniformARB (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name) |
| 222 | { |
| 223 | } |
| 224 | |
| 225 | void GLAPIENTRY |
| 226 | _mesa_GetUniformfvARB (GLhandleARB programObj, GLint location, GLfloat *params) |
| 227 | { |
| 228 | } |
| 229 | |
| 230 | void GLAPIENTRY |
| 231 | _mesa_GetUniformivARB (GLhandleARB programObj, GLint location, GLint *params) |
| 232 | { |
| 233 | } |
| 234 | |
| 235 | void GLAPIENTRY |
| 236 | _mesa_GetShaderSourceARB (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *source) |
| 237 | { |
| 238 | } |
| 239 | |
| 240 | /* GL_ARB_vertex_shader */ |
| 241 | |
| 242 | void GLAPIENTRY |
| 243 | _mesa_BindAttribLocationARB (GLhandleARB programObj, GLuint index, const GLcharARB *name) |
| 244 | { |
| 245 | } |
| 246 | |
| 247 | void GLAPIENTRY |
| 248 | _mesa_GetActiveAttribARB (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name) |
| 249 | { |
| 250 | } |
| 251 | |
| 252 | GLint GLAPIENTRY |
| 253 | _mesa_GetAttribLocationARB (GLhandleARB programObj, const GLcharARB *name) |
| 254 | { |
| 255 | return 0; |
| 256 | } |
| 257 | |
| 258 | void _mesa_init_shaderobjects( GLcontext * ctx ) |
| 259 | { |
| 260 | } |