From a0e8dcb1b9993212f68dcda1af4bbea765ed2728 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 9 Nov 2015 03:00:26 +0100 Subject: Remove USE_GLIDE ifdefs --- src/tile_c.cpp | 96 ---------------------------------------------------------- 1 file changed, 96 deletions(-) diff --git a/src/tile_c.cpp b/src/tile_c.cpp index 2fe3268..9bdc05f 100644 --- a/src/tile_c.cpp +++ b/src/tile_c.cpp @@ -46,9 +46,6 @@ #include "gfx.h" #include "tile.h" -#ifdef USE_GLIDE -#include "3d.h" -#endif extern uint32 HeadMask [4]; extern uint32 TailMask [5]; @@ -1128,96 +1125,3 @@ void DrawLargePixel16Sub1_2 (uint32 Tile, uint32 Offset, RENDER_TILE_LARGE (GFX.ScreenColors [pixel], LARGE_SUB_PIXEL1_2) } - -#ifdef USE_GLIDE -#if 0 -void DrawTile3dfx (uint32 Tile, uint32 Offset, uint32 StartLine, - uint32 LineCount) -{ - TILE_PREAMBLE - - float x = Offset % GFX.Pitch; - float y = Offset / GFX.Pitch; - - Glide.sq [0].x = Glide.x_offset + x * Glide.x_scale; - Glide.sq [0].y = Glide.y_offset + y * Glide.y_scale; - Glide.sq [1].x = Glide.x_offset + (x + 8.0) * Glide.x_scale; - Glide.sq [1].y = Glide.y_offset + y * Glide.y_scale; - Glide.sq [2].x = Glide.x_offset + (x + 8.0) * Glide.x_scale; - Glide.sq [2].y = Glide.y_offset + (y + LineCount) * Glide.y_scale; - Glide.sq [3].x = Glide.x_offset + x * Glide.x_scale; - Glide.sq [3].y = Glide.y_offset + (y + LineCount) * Glide.y_scale; - - if (!(Tile & (V_FLIP | H_FLIP))) - { - // Normal - Glide.sq [0].tmuvtx [0].sow = 0.0; - Glide.sq [0].tmuvtx [0].tow = StartLine; - Glide.sq [1].tmuvtx [0].sow = 8.0; - Glide.sq [1].tmuvtx [0].tow = StartLine; - Glide.sq [2].tmuvtx [0].sow = 8.0; - Glide.sq [2].tmuvtx [0].tow = StartLine + LineCount; - Glide.sq [3].tmuvtx [0].sow = 0.0; - Glide.sq [3].tmuvtx [0].tow = StartLine + LineCount; - } - else - if (!(Tile & V_FLIP)) - { - // Flipped - Glide.sq [0].tmuvtx [0].sow = 8.0; - Glide.sq [0].tmuvtx [0].tow = StartLine; - Glide.sq [1].tmuvtx [0].sow = 0.0; - Glide.sq [1].tmuvtx [0].tow = StartLine; - Glide.sq [2].tmuvtx [0].sow = 0.0; - Glide.sq [2].tmuvtx [0].tow = StartLine + LineCount; - Glide.sq [3].tmuvtx [0].sow = 8.0; - Glide.sq [3].tmuvtx [0].tow = StartLine + LineCount; - } - else - if (Tile & H_FLIP) - { - // Horizontal and vertical flip - Glide.sq [0].tmuvtx [0].sow = 8.0; - Glide.sq [0].tmuvtx [0].tow = StartLine + LineCount; - Glide.sq [1].tmuvtx [0].sow = 0.0; - Glide.sq [1].tmuvtx [0].tow = StartLine + LineCount; - Glide.sq [2].tmuvtx [0].sow = 0.0; - Glide.sq [2].tmuvtx [0].tow = StartLine; - Glide.sq [3].tmuvtx [0].sow = 8.0; - Glide.sq [3].tmuvtx [0].tow = StartLine; - } - else - { - // Vertical flip only - Glide.sq [0].tmuvtx [0].sow = 0.0; - Glide.sq [0].tmuvtx [0].tow = StartLine + LineCount; - Glide.sq [1].tmuvtx [0].sow = 8.0; - Glide.sq [1].tmuvtx [0].tow = StartLine + LineCount; - Glide.sq [2].tmuvtx [0].sow = 8.0; - Glide.sq [2].tmuvtx [0].tow = StartLine; - Glide.sq [3].tmuvtx [0].sow = 0.0; - Glide.sq [3].tmuvtx [0].tow = StartLine; - } - grTexDownloadMipMapLevel (GR_TMU0, Glide.texture_mem_start, - GR_LOD_8, GR_LOD_8, GR_ASPECT_1x1, - GR_TEXFMT_RGB_565, - GR_MIPMAPLEVELMASK_BOTH, - (void *) pCache); - grTexSource (GR_TMU0, Glide.texture_mem_start, - GR_MIPMAPLEVELMASK_BOTH, &Glide.texture); - grDrawTriangle (&Glide.sq [0], &Glide.sq [3], &Glide.sq [2]); - grDrawTriangle (&Glide.sq [0], &Glide.sq [1], &Glide.sq [2]); -} - -void DrawClippedTile3dfx (uint32 Tile, uint32 Offset, - uint32 StartPixel, uint32 Width, - uint32 StartLine, uint32 LineCount) -{ - TILE_PREAMBLE - register uint8 *bp; - - TILE_CLIP_PREAMBLE - RENDER_CLIPPED_TILE(WRITE_4PIXELS16_SUB, WRITE_4PIXELS16_FLIPPED_SUB, 4) -} -#endif -#endif -- cgit v1.2.3