From ae5b7520016ae9b5065c39da66dba99d4ae69a7c Mon Sep 17 00:00:00 2001 From: yoshihiropsp Date: Fri, 26 Mar 2010 14:07:31 +0000 Subject: [PATCH] --- desmume/src/rasterize.h | 93 ----------------------------------------- 1 file changed, 93 deletions(-) delete mode 100644 desmume/src/rasterize.h diff --git a/desmume/src/rasterize.h b/desmume/src/rasterize.h deleted file mode 100644 index 8d47241d5..000000000 --- a/desmume/src/rasterize.h +++ /dev/null @@ -1,93 +0,0 @@ -/* Copyright 2009 DeSmuME team - - This file is part of DeSmuME - - DeSmuME is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - DeSmuME is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with DeSmuME; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -*/ - -#ifndef _RASTERIZE_H_ -#define _RASTERIZE_H_ - -#include "render3D.h" -#include "gfx3d.h" - -extern GPU3DInterface gpu3DRasterize; - -union FragmentColor -{ - u32 color; - struct - { - u8 r,g,b,a; - }; -}; - -struct Fragment -{ - u32 depth; - - struct - { - u8 opaque, translucent; - } polyid; - - u8 stencil; - - struct - { - u8 isTranslucentPoly:1; - u8 fogged:1; - }; -}; - -class TexCacheItem; - -class SoftRasterizerEngine -{ -public: - //debug: - int _debug_drawClippedUserPoly; - - SoftRasterizerEngine(); - - void initFramebuffer(const int width, const int height, const bool clearImage); - void framebufferProcess(); - void updateToonTable(); - void updateFogTable(); - void updateFloatColors(); - void performClipping(bool hirez); - template void performViewportTransforms(int width, int height); - void performCoordAdjustment(const bool skipBackfacing); - void performBackfaceTests(); - void setupTextures(const bool skipBackfacing); - - FragmentColor toonTable[32]; - u8 fogTable[32768]; - GFX3D_Clipper clipper; - GFX3D_Clipper::TClippedPoly *clippedPolys; - int clippedPolyCounter; - TexCacheItem* polyTexKeys[POLYLIST_SIZE]; - bool polyVisible[POLYLIST_SIZE]; - bool polyBackfacing[POLYLIST_SIZE]; - Fragment *screen; - FragmentColor *screenColor; - POLYLIST* polylist; - VERTLIST* vertlist; - INDEXLIST* indexlist; - int width, height; -}; - - -#endif