Main Page | Alphabetical List | Compound List | File List | Compound Members | File Members

drawspan.h

Go to the documentation of this file.
00001 /****************************************************************************************/
00002 /*  drawspan.h                                                                          */
00003 /*                                                                                      */
00004 /*  Author:       Ken Baird                                                             */
00005 /*  Description:  header for span draw code                                             */
00006 /*                                                                                      */
00007 /*  The contents of this file are subject to the Genesis3D Public License               */
00008 /*  Version 1.01 (the "License"); you may not use this file except in                   */
00009 /*  compliance with the License. You may obtain a copy of the License at                */
00010 /*  http://www.genesis3d.com                                                            */
00011 /*                                                                                      */
00012 /*  Software distributed under the License is distributed on an "AS IS"                 */
00013 /*  basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.  See                */
00014 /*  the License for the specific language governing rights and limitations              */
00015 /*  under the License.                                                                  */
00016 /*                                                                                      */
00017 /*  The Original Code is Genesis3D, released March 25, 1999.                            */
00018 /*  Genesis3D Version 1.1 released November 15, 1999                                 */
00019 /*  Copyright (C) 1999 WildTangent, Inc. All Rights Reserved           */
00020 /*                                                                                      */
00021 /****************************************************************************************/
00022 #include "softdrv.h"
00023 #include "basetype.h"
00024 
00025 typedef struct EdgeAsmFPUTag EdgeAsmFPU;
00026 
00027 extern  uint16  *TDest, *pZBufferPtr, *Dest;
00028 extern  __int64 Red, Green;
00029 extern  geFloat Real65536;
00030 extern  double  Bucket, Bucket2, Bucket3, Magic, RedMask, RedMask2;
00031 extern  uint32  UMask, VShift, VMask, TempPix, Blue;
00032 static  uint32  VStep, UStep, ZStep, u16, v16, z16, Z32;
00033 
00034 extern  geFloat const   Two, MiniRedMask, GreenMask;
00035 extern  geFloat const   MiniRedMask2, GreenMask2, BlueMask;
00036 extern  geFloat                 FloatTemp, FTemp0, FTemp1, FTemp2;
00037 extern  geFloat                 FTemp3, FTemp4, FTemp5, FTemp6, FTemp7, FTemp8;
00038 
00039 extern  int32   GHMaskShifted, GHMaskShifted16, GWMaskShifted, GWMask, widTemp;
00040 extern  uint8   *GBitPtrHalf;
00041 extern  double  MipMagic;
00042 extern  double  MipMagic2;
00043 
00044 extern uint32   NumASpans, RemainingCount;
00045 extern double   DeltaU, DeltaV, DeltaW;
00046 extern uint32   UFixed, VFixed, WLeft;
00047 extern uint8    *pTex;
00048 
00049 extern  int32   R1, B1, G1, R2, G2, B2;
00050 extern  int32   RR1, RR2, GG1, GG2, BB1, BB2;
00051 extern  int32   StepR, StepG, StepB;
00052 extern  int32   UDist, VDist;
00053 extern  int32   U1, V1, CKeyTest;
00054 extern  geFloat GLMapMulU;      //lightscale
00055 extern  geFloat GLMapMulV;      //lightscale
00056 extern  int32   ZDelta, ZVal;
00057 extern  geFloat ZBufferPrec;
00058 extern  __int64 RedDelta, GreenDelta, BlueDelta;
00059 
00060 
00061 //555
00062 #define REDMASK2        0x7c007c00;
00063 #define GREENMASK2      0x03e003e0;
00064 #define BLUEMASK2       0x001f001f;
00065 
00066 //565
00067 #define REDMASK         0xf800f800;
00068 #define GREENMASK       0x07e007e0;
00069 #define BLUEMASK        0x001f001f;

Generated on Tue Sep 30 12:35:39 2003 for GTestAndEngine by doxygen 1.3.2