[Video] rename guFogGenerateLinear to gfxFogGenerateLinear
This commit is contained in:
parent
b208a0646a
commit
40e8ee7066
|
@ -535,7 +535,7 @@ int InitGfx()
|
|||
if (g_settings->fog()) //"FOGCOORD" extension
|
||||
{
|
||||
GrFog_t fog_t[64];
|
||||
guFogGenerateLinear(fog_t, 0.0f, 255.0f);//(float)rdp.fog_multiplier + (float)rdp.fog_offset);//256.0f);
|
||||
gfxFogGenerateLinear(fog_t, 0.0f, 255.0f);
|
||||
|
||||
for (int i = 63; i > 0; i--)
|
||||
{
|
||||
|
|
|
@ -1591,9 +1591,7 @@ void gfxFogMode(GrFogMode_t mode)
|
|||
need_to_compile = 1;
|
||||
}
|
||||
|
||||
FX_ENTRY void FX_CALL
|
||||
guFogGenerateLinear(GrFog_t *fogtable,
|
||||
float nearZ, float farZ)
|
||||
void gfxFogGenerateLinear(GrFog_t *fogtable, float nearZ, float farZ)
|
||||
{
|
||||
WriteTrace(TraceGlitch, TraceDebug, "nearZ: %f farZ: %f", nearZ, farZ);
|
||||
/*
|
||||
|
|
|
@ -1536,9 +1536,7 @@ void gfxFogMode(GrFogMode_t mode)
|
|||
grDisplayGLError("gfxFogMode");
|
||||
}
|
||||
|
||||
FX_ENTRY void FX_CALL
|
||||
guFogGenerateLinear(GrFog_t * /*fogtable*/,
|
||||
float nearZ, float farZ)
|
||||
void gfxFogGenerateLinear(GrFog_t *fogtable, float nearZ, float farZ)
|
||||
{
|
||||
WriteTrace(TraceGlitch, TraceDebug, "nearZ: %f farZ: %f", nearZ, farZ);
|
||||
glFogi(GL_FOG_MODE, GL_LINEAR);
|
||||
|
@ -1546,7 +1544,7 @@ guFogGenerateLinear(GrFog_t * /*fogtable*/,
|
|||
glFogf(GL_FOG_START, nearZ / 255.0f);
|
||||
glFogf(GL_FOG_END, farZ / 255.0f);
|
||||
|
||||
grDisplayGLError("guFogGenerateLinear");
|
||||
grDisplayGLError("gfxFogGenerateLinear");
|
||||
}
|
||||
|
||||
FX_ENTRY void FX_CALL
|
||||
|
|
|
@ -31,6 +31,7 @@ void gfxAlphaBlendFunction(GrAlphaBlendFnc_t rgb_sf, GrAlphaBlendFnc_t rgb_df, G
|
|||
void gfxAlphaTestReferenceValue(gfxAlpha_t value);
|
||||
void gfxAlphaTestFunction(GrCmpFnc_t function);
|
||||
void gfxFogMode(GrFogMode_t mode);
|
||||
void gfxFogGenerateLinear(GrFog_t *fogtable, float nearZ, float farZ);
|
||||
|
||||
extern uint32_t nbTextureUnits;
|
||||
extern uint32_t g_scr_res_x, g_scr_res_y, g_res_x, g_res_y;
|
||||
|
|
Loading…
Reference in New Issue