1 /**************************************************************************
3 * Copyright 2008 Tungsten Graphics, Inc., Cedar Park, Texas.
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:
13 * The above copyright notice and this permission notice shall be included
14 * in all copies or substantial portions of the Software.
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 * TUNGSTEN GRAPHICS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
21 * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23 **************************************************************************/
27 * Temporary stubs for "missing" mesa functions.
31 #include "main/mtypes.h"
32 #include "main/imports.h"
35 #define NEED_IMPLEMENT() do { \
36 GET_CURRENT_CONTEXT(ctx); \
37 _mesa_error(ctx, GL_INVALID_OPERATION, __FUNCTION__); \
41 /* This is a sanity check that to be sure we're using the correct mfeatures.h
42 * header. We don't want to accidentally use the one from mainline Mesa.
44 #error "The wrong mfeatures.h file is being included!"
48 /* silence compiler warnings */
49 extern void GLAPIENTRY
_vbo_Materialf(GLenum face
, GLenum pname
, GLfloat param
);
50 extern void GLAPIENTRY
_mesa_GetShaderPrecisionFormat(GLenum shadertype
, GLenum precisiontype
, GLint
* range
, GLint
* precision
);
51 extern void GLAPIENTRY
_mesa_ReleaseShaderCompiler(void);
52 extern void GLAPIENTRY
_mesa_ShaderBinary(GLint n
, const GLuint
* shaders
, GLenum binaryformat
, const void* binary
, GLint length
);
53 extern void GLAPIENTRY
_vbo_VertexAttrib1f(GLuint indx
, GLfloat x
);
54 extern void GLAPIENTRY
_vbo_VertexAttrib1fv(GLuint indx
, const GLfloat
* values
);
55 extern void GLAPIENTRY
_vbo_VertexAttrib2f(GLuint indx
, GLfloat x
, GLfloat y
);
56 extern void GLAPIENTRY
_vbo_VertexAttrib2fv(GLuint indx
, const GLfloat
* values
);
57 extern void GLAPIENTRY
_vbo_VertexAttrib3f(GLuint indx
, GLfloat x
, GLfloat y
, GLfloat z
);
58 extern void GLAPIENTRY
_vbo_VertexAttrib3fv(GLuint indx
, const GLfloat
* values
);
59 extern void GLAPIENTRY
_vbo_VertexAttrib4fv(GLuint indx
, const GLfloat
* values
);
63 _vbo_Materialf(GLenum face
, GLenum pname
, GLfloat param
)
65 _vbo_Materialfv(face
, pname
, ¶m
);
70 _mesa_GetShaderPrecisionFormat(GLenum shadertype
, GLenum precisiontype
,
71 GLint
* range
, GLint
* precision
)
78 _mesa_ReleaseShaderCompiler(void)
85 _mesa_ShaderBinary(GLint n
, const GLuint
* shaders
, GLenum binaryformat
,
86 const void* binary
, GLint length
)
93 _vbo_VertexAttrib1f(GLuint indx
, GLfloat x
)
95 _vbo_VertexAttrib4f(indx
, x
, 0.0, 0.0, 1.0f
);
100 _vbo_VertexAttrib1fv(GLuint indx
, const GLfloat
* values
)
102 _vbo_VertexAttrib4f(indx
, values
[0], 0.0, 0.0, 1.0f
);
107 _vbo_VertexAttrib2f(GLuint indx
, GLfloat x
, GLfloat y
)
109 _vbo_VertexAttrib4f(indx
, x
, y
, 0.0, 1.0f
);
114 _vbo_VertexAttrib2fv(GLuint indx
, const GLfloat
* values
)
116 _vbo_VertexAttrib4f(indx
, values
[0], values
[1], 0.0, 1.0f
);
121 _vbo_VertexAttrib3f(GLuint indx
, GLfloat x
, GLfloat y
, GLfloat z
)
123 _vbo_VertexAttrib4f(indx
, x
, y
, z
, 1.0f
);
128 _vbo_VertexAttrib3fv(GLuint indx
, const GLfloat
* values
)
130 _vbo_VertexAttrib4f(indx
, values
[0], values
[1], values
[2], 1.0f
);
135 _vbo_VertexAttrib4fv(GLuint indx
, const GLfloat
* values
)
137 _vbo_VertexAttrib4f(indx
, values
[0], values
[1], values
[2], values
[3]);