37 ERR(
"Texture unit > 0 used, but GL_ARB_multitexture is not supported\n");
45 ERR(
"Texture unit > 0 used, but GL_ARB_multitexture is not supported\n");
53 ERR(
"Texture unit > 0 used, but GL_ARB_multitexture is not supported\n");
61 ERR(
"Texture unit > 0 used, but GL_ARB_multitexture is not supported\n");
69 ERR(
"Texture unit > 0 used, but GL_ARB_multitexture is not supported\n");
77 ERR(
"Texture unit > 0 used, but GL_ARB_multitexture is not supported\n");
85 ERR(
"Texture unit > 0 used, but GL_ARB_multitexture is not supported\n");
93 ERR(
"Texture unit > 0 used, but GL_ARB_multitexture is not supported\n");
101 ERR(
"Texture unit > 0 used, but GL_ARB_multitexture is not supported\n");
109 ERR(
"Texture unit > 0 used, but GL_ARB_multitexture is not supported\n");
118 ERR(
"Texture unit > 0 used, but GL_ARB_multitexture is not supported\n");
125 ERR(
"Texture unit > 0 used, but GL_ARB_multitexture is not supported\n");
135 default: old_multitex_glGetIntegerv(
pname,
params);
156 ctx->fog_enabled = 1;
159 old_fogcoord_glEnable(
cap);
166 ctx->fog_enabled = 0;
169 old_fogcoord_glDisable(
cap);
179 if(
ctx->fog_enabled) old_fogcoord_glEnable(
GL_FOG);
181 WARN_(d3d_perf)(
"Fog coords activated, but not supported. Using slow emulation\n");
182 old_fogcoord_glDisable(
GL_FOG);
200 if(
ctx->fog_enabled) old_fogcoord_glEnable(
GL_FOG);
202 WARN_(d3d_perf)(
"Fog coords activated, but not supported. Using slow emulation\n");
203 old_fogcoord_glDisable(
GL_FOG);
221 if(
ctx->fog_enabled) old_fogcoord_glEnable(
GL_FOG);
223 WARN_(d3d_perf)(
"Fog coords activated, but not supported. Using slow emulation\n");
224 old_fogcoord_glDisable(
GL_FOG);
242 if(
ctx->fog_enabled) old_fogcoord_glEnable(
GL_FOG);
244 WARN_(d3d_perf)(
"Fog coords activated, but not supported. Using slow emulation\n");
245 old_fogcoord_glDisable(
GL_FOG);
272 old_fogcoord_glVertex4f(
x,
y,
z,
w);
279 i = (
ctx->fogend -
ctx->fog_coord_value) / (
ctx->fogend -
ctx->fogstart);
280 c[0] =
i *
c[0] + (1.0f -
i) *
ctx->fogcolor[0];
281 c[1] =
i *
c[1] + (1.0f -
i) *
ctx->fogcolor[1];
282 c[2] =
i *
c[2] + (1.0f -
i) *
ctx->fogcolor[2];
284 old_fogcoord_glColor4f(
c[0],
c[1],
c[2],
c[3]);
285 old_fogcoord_glVertex4f(
x,
y,
z,
w);
287 old_fogcoord_glVertex4f(
x,
y,
z,
w);
310 old_fogcoord_glColor4f(
r,
g,
b,
a);
317 old_fogcoord_glColor4f(
r,
g,
b,
a);
341 ctx->fog_coord_value =
f;
364 FIXME(
"ARB_multitexture emulation hooks already applied.\n");
367 TRACE(
"Applying GL_ARB_multitexture emulation hooks.\n");
380 old_multitex_glGetIntegerv =
gl_info->gl_ops.gl.p_glGetIntegerv;
382 old_multitex_glGetFloatv =
gl_info->gl_ops.gl.p_glGetFloatv;
384 old_multitex_glGetDoublev =
gl_info->gl_ops.gl.p_glGetDoublev;
412 FIXME(
"EXT_fog_coord emulation hooks already applied.\n");
415 TRACE(
"Applying GL_ARB_fog_coord emulation hooks\n");
423 FIXME(
"GL implementation supports GL_ARB_fragment_program but not GL_EXT_fog_coord\n");
424 FIXME(
"The fog coord emulation will most likely fail\n");
428 FIXME(
"GL implementation supports GL_ARB_fragment_shader but not GL_EXT_fog_coord\n");
429 FIXME(
"The fog coord emulation will most likely fail\n");
432 old_fogcoord_glFogi =
gl_info->gl_ops.gl.p_glFogi;
434 old_fogcoord_glFogiv =
gl_info->gl_ops.gl.p_glFogiv;
436 old_fogcoord_glFogf =
gl_info->gl_ops.gl.p_glFogf;
438 old_fogcoord_glFogfv =
gl_info->gl_ops.gl.p_glFogfv;
440 old_fogcoord_glEnable = glEnableWINE;
442 old_fogcoord_glDisable = glDisableWINE;
445 old_fogcoord_glVertex4f =
gl_info->gl_ops.gl.p_glVertex4f;
451 old_fogcoord_glColor4f =
gl_info->gl_ops.gl.p_glColor4f;
466 FIXME(
"Extension %u emulation not supported.\n",
ext);
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
struct wined3d_context * context_get_current(void)
#define WINE_DECLARE_DEBUG_CHANNEL(x)
static const WCHAR *const ext[]
GLint GLint GLint GLint GLint x
#define GL_MAX_TEXTURE_UNITS_ARB
#define GL_ACTIVE_TEXTURE
GLint GLint GLint GLint GLint GLint y
GLdouble GLdouble GLdouble r
GLdouble GLdouble GLdouble GLdouble q
static void WINE_GLAPI wine_glFogCoordfEXT(GLfloat f)
static void WINE_GLAPI wine_glMultiTexCoord2fvARB(GLenum target, const GLfloat *v)
static void WINE_GLAPI wine_glFogiv(GLenum pname, const GLint *param)
static void WINE_GLAPI wine_glColor4ub(GLubyte r, GLubyte g, GLubyte b, GLubyte a)
static void WINE_GLAPI wine_glGetFloatv(GLenum pname, GLfloat *params)
static void WINE_GLAPI wine_glFogfv(GLenum pname, const GLfloat *param)
static GLfloat GLfloat GLfloat w
static void WINE_GLAPI wine_glFogf(GLenum pname, GLfloat param)
static GLfloat GLfloat GLfloat a
static void WINE_GLAPI wine_glActiveTexture(GLenum texture)
static void WINE_GLAPI wine_glMultiTexCoord4fvARB(GLenum target, const GLfloat *v)
static void WINE_GLAPI wine_glMultiTexCoord1fvARB(GLenum target, const GLfloat *v)
static void WINE_GLAPI wine_glMultiTexCoord3fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r)
static void WINE_GLAPI wine_glMultiTexCoord2svARB(GLenum target, const GLshort *v)
static void WINE_GLAPI wine_glVertex4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
static void WINE_GLAPI wine_glMultiTexCoord2fARB(GLenum target, GLfloat s, GLfloat t)
static void WINE_GLAPI wine_glVertex3fv(const GLfloat *pos)
static void WINE_GLAPI wine_glColor3f(GLfloat r, GLfloat g, GLfloat b)
static void WINE_GLAPI wine_glColor3fv(const GLfloat *c)
static void WINE_GLAPI wine_glFogCoordfvEXT(const GLfloat *f)
static void WINE_GLAPI wine_glEnable(GLenum cap)
static void WINE_GLAPI wine_glGetIntegerv(GLenum pname, GLint *params)
static void WINE_GLAPI wine_glColor4fv(const GLfloat *c)
static void WINE_GLAPI wine_glFogi(GLenum pname, GLint param)
static void WINE_GLAPI wine_glVertex4fv(const GLfloat *pos)
static void WINE_GLAPI wine_glColor4f(GLfloat r, GLfloat g, GLfloat b, GLfloat a)
static void WINE_GLAPI wine_glFogCoorddEXT(GLdouble f)
static void WINE_GLAPI wine_glMultiTexCoord3fvARB(GLenum target, const GLfloat *v)
static void WINE_GLAPI wine_glDisable(GLenum cap)
static void WINE_GLAPI wine_glMultiTexCoord4fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q)
static void WINE_GLAPI wine_glVertex3f(GLfloat x, GLfloat y, GLfloat z)
static void WINE_GLAPI wine_glFogCoorddvEXT(const GLdouble *f)
void install_gl_compat_wrapper(struct wined3d_gl_info *gl_info, enum wined3d_gl_extension ext)
static void WINE_GLAPI wine_glGetDoublev(GLenum pname, GLdouble *params)
static void WINE_GLAPI wine_glMultiTexCoord1fARB(GLenum target, GLfloat s)
static void WINE_GLAPI wine_glClientActiveTextureARB(GLenum texture)
static void WINE_GLAPI wine_glMultiTexCoord4svARB(GLenum target, const GLshort *v)
#define GL_FOG_COORDINATE_SOURCE_EXT
#define GL_FRAGMENT_DEPTH_EXT
GLboolean GLboolean GLboolean b
GLenum const GLfloat * params
#define GL_FOG_COORDINATE_EXT
GLboolean GLboolean GLboolean GLboolean a
GLubyte GLubyte GLubyte GLubyte w
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static float(__cdecl *square_half_float)(float x
const struct wined3d_gl_info * gl_info