parent
a3689c694c
commit
2ce83bb48d
2 changed files with 7 additions and 32 deletions
10
src/r_draw.h
10
src/r_draw.h
|
|
@ -240,16 +240,6 @@ void R_Draw2sMultiPatchColumn_Brightmap(drawcolumndata_t* dc);
|
||||||
void R_Draw2sMultiPatchTranslucentColumn_Brightmap(drawcolumndata_t* dc);
|
void R_Draw2sMultiPatchTranslucentColumn_Brightmap(drawcolumndata_t* dc);
|
||||||
void R_DrawColumnShadowed_Brightmap(drawcolumndata_t* dc);
|
void R_DrawColumnShadowed_Brightmap(drawcolumndata_t* dc);
|
||||||
|
|
||||||
// column drawers which use buffered drawing with flush
|
|
||||||
void R_DrawColumnFlush_Brightmap(drawcolumndata_t* dc);
|
|
||||||
void R_DrawTranslucentColumnFlush_Brightmap(drawcolumndata_t* dc);
|
|
||||||
void R_DrawTranslatedColumnFlush_Brightmap(drawcolumndata_t* dc);
|
|
||||||
void R_DrawColumnShadowedFlush_Brightmap(drawcolumndata_t* dc);
|
|
||||||
void R_DrawTranslatedTranslucentColumnFlush_Brightmap(drawcolumndata_t* dc);
|
|
||||||
void R_Draw2sMultiPatchColumnFlush_Brightmap(drawcolumndata_t* dc);
|
|
||||||
void R_Draw2sMultiPatchTranslucentColumnFlush_Brightmap(drawcolumndata_t* dc);
|
|
||||||
|
|
||||||
|
|
||||||
void R_DrawSpan(drawspandata_t* ds);
|
void R_DrawSpan(drawspandata_t* ds);
|
||||||
void R_DrawTranslucentSpan(drawspandata_t* ds);
|
void R_DrawTranslucentSpan(drawspandata_t* ds);
|
||||||
void R_DrawSplat(drawspandata_t* ds);
|
void R_DrawSplat(drawspandata_t* ds);
|
||||||
|
|
|
||||||
29
src/screen.c
29
src/screen.c
|
|
@ -128,28 +128,13 @@ void SCR_SetDrawFuncs(enum columncontext_e _columncontext)
|
||||||
colfuncs[COLDRAWFUNC_FOG] = R_DrawFogColumn;
|
colfuncs[COLDRAWFUNC_FOG] = R_DrawFogColumn;
|
||||||
colfuncs[COLDRAWFUNC_DROPSHADOW] = R_DrawDropShadowColumn;
|
colfuncs[COLDRAWFUNC_DROPSHADOW] = R_DrawDropShadowColumn;
|
||||||
|
|
||||||
|
colfuncs_bm[BASEDRAWFUNC] = R_DrawColumn_Brightmap;
|
||||||
if (_columncontext == COLUMNCONTEXT_FLUSH)
|
colfuncs_bm[COLDRAWFUNC_FUZZY] = R_DrawTranslucentColumn_Brightmap;
|
||||||
{
|
colfuncs_bm[COLDRAWFUNC_TRANS] = R_DrawTranslatedColumn_Brightmap;
|
||||||
colfuncs_bm[BASEDRAWFUNC] = R_DrawColumnFlush_Brightmap;
|
colfuncs_bm[COLDRAWFUNC_SHADOWED] = R_DrawColumnShadowed_Brightmap;
|
||||||
colfuncs_bm[COLDRAWFUNC_FUZZY] = R_DrawTranslucentColumnFlush_Brightmap;
|
colfuncs_bm[COLDRAWFUNC_TRANSTRANS] = R_DrawTranslatedTranslucentColumn_Brightmap;
|
||||||
colfuncs_bm[COLDRAWFUNC_TRANS] = R_DrawTranslatedColumnFlush_Brightmap;
|
colfuncs_bm[COLDRAWFUNC_TWOSMULTIPATCH] = R_Draw2sMultiPatchColumn_Brightmap;
|
||||||
colfuncs_bm[COLDRAWFUNC_SHADOWED] = R_DrawColumnShadowedFlush_Brightmap;
|
colfuncs_bm[COLDRAWFUNC_TWOSMULTIPATCHTRANS] = R_Draw2sMultiPatchTranslucentColumn_Brightmap;
|
||||||
colfuncs_bm[COLDRAWFUNC_TRANSTRANS] = R_DrawTranslatedTranslucentColumnFlush_Brightmap;
|
|
||||||
colfuncs_bm[COLDRAWFUNC_TWOSMULTIPATCH] = R_Draw2sMultiPatchColumnFlush_Brightmap;
|
|
||||||
colfuncs_bm[COLDRAWFUNC_TWOSMULTIPATCHTRANS] = R_Draw2sMultiPatchTranslucentColumnFlush_Brightmap;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
colfuncs_bm[BASEDRAWFUNC] = R_DrawColumn_Brightmap;
|
|
||||||
colfuncs_bm[COLDRAWFUNC_FUZZY] = R_DrawTranslucentColumn_Brightmap;
|
|
||||||
colfuncs_bm[COLDRAWFUNC_TRANS] = R_DrawTranslatedColumn_Brightmap;
|
|
||||||
colfuncs_bm[COLDRAWFUNC_SHADOWED] = R_DrawColumnShadowed_Brightmap;
|
|
||||||
colfuncs_bm[COLDRAWFUNC_TRANSTRANS] = R_DrawTranslatedTranslucentColumn_Brightmap;
|
|
||||||
colfuncs_bm[COLDRAWFUNC_TWOSMULTIPATCH] = R_Draw2sMultiPatchColumn_Brightmap;
|
|
||||||
colfuncs_bm[COLDRAWFUNC_TWOSMULTIPATCHTRANS] = R_Draw2sMultiPatchTranslucentColumn_Brightmap;
|
|
||||||
}
|
|
||||||
|
|
||||||
colfuncs_bm[COLDRAWFUNC_FOG] = NULL; // Not needed
|
colfuncs_bm[COLDRAWFUNC_FOG] = NULL; // Not needed
|
||||||
colfuncs_bm[COLDRAWFUNC_DROPSHADOW] = NULL; // Not needed
|
colfuncs_bm[COLDRAWFUNC_DROPSHADOW] = NULL; // Not needed
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue