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

span.c File Reference

#include <assert.h>
#include "span.h"
#include "Triangle.h"
#include "Span_Factory.h"

Go to the source code of this file.

Compounds

struct  Span_FunctionTableEntry

Defines

#define SPANROP   LSHADE
#define SPANROP   LSHADE + D565
#define SPANROP   LSHADE + ZSET
#define SPANROP   LSHADE + ZSET + D565
#define SPANROP   LSHADE + ZTEST
#define SPANROP   LSHADE + ZTEST + D565
#define SPANROP   LSHADE + ZTEST + ZSET
#define SPANROP   LSHADE + ZTEST + ZSET + D565
#define SPANROP   LSHADE + AFLAT
#define SPANROP   LSHADE + AFLAT + D565
#define SPANROP   LSHADE + AFLAT + ZSET
#define SPANROP   LSHADE + AFLAT + ZSET + D565
#define SPANROP   LSHADE + AFLAT + ZTEST
#define SPANROP   LSHADE + AFLAT + ZTEST + D565
#define SPANROP   LSHADE + AFLAT + ZTEST + ZSET
#define SPANROP   LSHADE + AFLAT + ZTEST + ZSET + D565
#define SPANROP   TMAP + LSHADE
#define SPANROP   TMAP + LSHADE + D565
#define SPANROP   TMAP + LSHADE + ZSET
#define SPANROP   TMAP + LSHADE + ZSET + D565
#define SPANROP   TMAP + LSHADE + ZTEST
#define SPANROP   TMAP + LSHADE + ZTEST + D565
#define SPANROP   TMAP + LSHADE + ZTEST + ZSET
#define SPANROP   TMAP + LSHADE + ZTEST + ZSET + D565
#define SPANROP   TMAP + LMAP + ZSET
#define SPANROP   TMAP + LMAP + ZSET + D565
#define SPANROP   TMAP + LMAP + ZTEST + ZSET
#define SPANROP   TMAP + LMAP + ZTEST + ZSET + D565
#define SPANROP   TMAP + LSHADE + AFLAT
#define SPANROP   TMAP + LSHADE + AFLAT + D565
#define SPANROP   TMAP + LSHADE + AFLAT + ZSET
#define SPANROP   TMAP + LSHADE + AFLAT + ZSET + D565
#define SPANROP   TMAP + LSHADE + AFLAT + ZTEST
#define SPANROP   TMAP + LSHADE + AFLAT + ZTEST + D565
#define SPANROP   TMAP + LSHADE + AFLAT + ZTEST + ZSET
#define SPANROP   TMAP + LSHADE + AFLAT + ZTEST + ZSET + D565
#define SPANROP   TMAP + LSHADE + AMAP
#define SPANROP   TMAP + LSHADE + AMAP + D565
#define SPANROP   TMAP + LSHADE + AMAP + ZSET
#define SPANROP   TMAP + LSHADE + AMAP + ZSET + D565
#define SPANROP   TMAP + LSHADE + AMAP + ZTEST
#define SPANROP   TMAP + LSHADE + AMAP + ZTEST + D565
#define SPANROP   TMAP + LSHADE + AMAP + ZTEST + ZSET
#define SPANROP   TMAP + LSHADE + AMAP + ZTEST + ZSET + D565
#define SPANROP   TMAP + LMAP + AMAP
#define SPANROP   TMAP + LMAP + AMAP + D565
#define SPANROP   TMAP + LMAP + AMAP + ZSET
#define SPANROP   TMAP + LMAP + AMAP + ZSET + D565
#define SPANROP   TMAP + LMAP + AMAP + ZTEST
#define SPANROP   TMAP + LMAP + AMAP + ZTEST + D565
#define SPANROP   TMAP + LMAP + AMAP + ZTEST + ZSET
#define SPANROP   TMAP + LMAP + AMAP + ZTEST + ZSET + D565
#define SPANROP   TMAP + LMAP + AFLAT + ZTEST + ZSET
#define SPANROP   TMAP + LMAP + AFLAT + ZTEST + ZSET + D565
#define SPANROP   TMAP + LSHADE + AMAP + AFLAT
#define SPANROP   TMAP + LSHADE + AMAP + AFLAT + D565
#define SPANROP   TMAP + LSHADE + AMAP + AFLAT + ZSET
#define SPANROP   TMAP + LSHADE + AMAP + AFLAT + ZSET + D565
#define SPANROP   TMAP + LSHADE + AMAP + AFLAT + ZTEST
#define SPANROP   TMAP + LSHADE + AMAP + AFLAT + ZTEST + D565
#define SPANROP   TMAP + LSHADE + AMAP + AFLAT + ZTEST + ZSET
#define SPANROP   TMAP + LSHADE + AMAP + AFLAT + ZTEST + ZSET + D565

Functions

void GENESISCC Span_LightMapSample (void)
void GENESISCC Span_C_TMAP_LMAP_Z1 (void)
void GENESISCC Span_C_LSHADE_555 (void)
void GENESISCC Span_C_LSHADE_565 (void)
void GENESISCC Span_C_LSHADE_ZSET_555 (void)
void GENESISCC Span_C_LSHADE_ZSET_565 (void)
void GENESISCC Span_C_LSHADE_ZTEST_555 (void)
void GENESISCC Span_C_LSHADE_ZTEST_565 (void)
void GENESISCC Span_C_LSHADE_ZTEST_ZSET_555 (void)
void GENESISCC Span_C_LSHADE_ZTEST_ZSET_565 (void)
void GENESISCC Span_C_LSHADE_AFLAT_555 (void)
void GENESISCC Span_C_LSHADE_AFLAT_565 (void)
void GENESISCC Span_C_LSHADE_AFLAT_ZSET_555 (void)
void GENESISCC Span_C_LSHADE_AFLAT_ZSET_565 (void)
void GENESISCC Span_C_LSHADE_AFLAT_ZTEST_555 (void)
void GENESISCC Span_C_LSHADE_AFLAT_ZTEST_565 (void)
void GENESISCC Span_C_LSHADE_AFLAT_ZTEST_ZSET_555 (void)
void GENESISCC Span_C_LSHADE_AFLAT_ZTEST_ZSET_565 (void)
void GENESISCC Span_C_TMAP_LSHADE_555 (void)
void GENESISCC Span_C_TMAP_LSHADE_565 (void)
void GENESISCC Span_C_TMAP_LSHADE_ZSET_555 (void)
void GENESISCC Span_C_TMAP_LSHADE_ZSET_565 (void)
void GENESISCC Span_C_TMAP_LSHADE_ZTEST_555 (void)
void GENESISCC Span_C_TMAP_LSHADE_ZTEST_565 (void)
void GENESISCC Span_C_TMAP_LSHADE_ZTEST_ZSET_555 (void)
void GENESISCC Span_C_TMAP_LSHADE_ZTEST_ZSET_565 (void)
void GENESISCC Span_C_TMAP_LMAP_ZSET_555 (void)
void GENESISCC Span_C_TMAP_LMAP_ZSET_565 (void)
void GENESISCC Span_C_TMAP_LMAP_ZTEST_ZSET_555 (void)
void GENESISCC Span_C_TMAP_LMAP_ZTEST_ZSET_565 (void)
void GENESISCC Span_C_TMAP_LSHADE_AFLAT_555 (void)
void GENESISCC Span_C_TMAP_LSHADE_AFLAT_565 (void)
void GENESISCC Span_C_TMAP_LSHADE_AFLAT_ZSET_555 (void)
void GENESISCC Span_C_TMAP_LSHADE_AFLAT_ZSET_565 (void)
void GENESISCC Span_C_TMAP_LSHADE_AFLAT_ZTEST_555 (void)
void GENESISCC Span_C_TMAP_LSHADE_AFLAT_ZTEST_565 (void)
void GENESISCC Span_C_TMAP_LSHADE_AFLAT_ZTEST_ZSET_555 (void)
void GENESISCC Span_C_TMAP_LSHADE_AFLAT_ZTEST_ZSET_565 (void)
void GENESISCC Span_C_TMAP_LSHADE_AMAP_555 (void)
void GENESISCC Span_C_TMAP_LSHADE_AMAP_565 (void)
void GENESISCC Span_C_TMAP_LSHADE_AMAP_ZSET_555 (void)
void GENESISCC Span_C_TMAP_LSHADE_AMAP_ZSET_565 (void)
void GENESISCC Span_C_TMAP_LSHADE_AMAP_ZTEST_555 (void)
void GENESISCC Span_C_TMAP_LSHADE_AMAP_ZTEST_565 (void)
void GENESISCC Span_C_TMAP_LSHADE_AMAP_ZTEST_ZSET_555 (void)
void GENESISCC Span_C_TMAP_LSHADE_AMAP_ZTEST_ZSET_565 (void)
void GENESISCC Span_C_TMAP_LMAP_AMAP_555 (void)
void GENESISCC Span_C_TMAP_LMAP_AMAP_565 (void)
void GENESISCC Span_C_TMAP_LMAP_AMAP_ZSET_555 (void)
void GENESISCC Span_C_TMAP_LMAP_AMAP_ZSET_565 (void)
void GENESISCC Span_C_TMAP_LMAP_AMAP_ZTEST_555 (void)
void GENESISCC Span_C_TMAP_LMAP_AMAP_ZTEST_565 (void)
void GENESISCC Span_C_TMAP_LMAP_AMAP_ZTEST_ZSET_555 (void)
void GENESISCC Span_C_TMAP_LMAP_AMAP_ZTEST_ZSET_565 (void)
void GENESISCC Span_C_TMAP_LMAP_AFLAT_ZTEST_ZSET_555 (void)
void GENESISCC Span_C_TMAP_LMAP_AFLAT_ZTEST_ZSET_565 (void)
void GENESISCC Span_C_TMAP_LSHADE_AMAP_AFLAT_555 (void)
void GENESISCC Span_C_TMAP_LSHADE_AMAP_AFLAT_565 (void)
void GENESISCC Span_C_TMAP_LSHADE_AMAP_AFLAT_ZSET_555 (void)
void GENESISCC Span_C_TMAP_LSHADE_AMAP_AFLAT_ZSET_565 (void)
void GENESISCC Span_C_TMAP_LSHADE_AMAP_AFLAT_ZTEST_555 (void)
void GENESISCC Span_C_TMAP_LSHADE_AMAP_AFLAT_ZTEST_565 (void)
void GENESISCC Span_C_TMAP_LSHADE_AMAP_AFLAT_ZTEST_ZSET_555 (void)
void GENESISCC Span_C_TMAP_LSHADE_AMAP_AFLAT_ZTEST_ZSET_565 (void)
geBoolean GENESISCC Span_SetOutputMode (geSpan_DestinationFormat DestFormat, geSpan_CPU CPU)
Span_DrawFunction GENESISCC Span_GetDrawFunction (geROP ROP)

Variables

int32 URight
int32 VRight
int32 RRight
int32 GRight
int32 BRight
Span_FunctionTableEntry Span_FunctionTable [GE_ROP_END]


Define Documentation

#define SPANROP   TMAP + LSHADE + AMAP + AFLAT + ZTEST + ZSET + D565
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LSHADE + AMAP + AFLAT + ZTEST + ZSET
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LSHADE + AMAP + AFLAT + ZTEST + D565
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LSHADE + AMAP + AFLAT + ZTEST
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LSHADE + AMAP + AFLAT + ZSET + D565
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LSHADE + AMAP + AFLAT + ZSET
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LSHADE + AMAP + AFLAT + D565
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LSHADE + AMAP + AFLAT
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LMAP + AFLAT + ZTEST + ZSET + D565
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LMAP + AFLAT + ZTEST + ZSET
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LMAP + AMAP + ZTEST + ZSET + D565
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LMAP + AMAP + ZTEST + ZSET
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LMAP + AMAP + ZTEST + D565
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LMAP + AMAP + ZTEST
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LMAP + AMAP + ZSET + D565
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LMAP + AMAP + ZSET
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LMAP + AMAP + D565
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LMAP + AMAP
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LSHADE + AMAP + ZTEST + ZSET + D565
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LSHADE + AMAP + ZTEST + ZSET
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LSHADE + AMAP + ZTEST + D565
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LSHADE + AMAP + ZTEST
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LSHADE + AMAP + ZSET + D565
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LSHADE + AMAP + ZSET
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LSHADE + AMAP + D565
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LSHADE + AMAP
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LSHADE + AFLAT + ZTEST + ZSET + D565
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LSHADE + AFLAT + ZTEST + ZSET
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LSHADE + AFLAT + ZTEST + D565
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LSHADE + AFLAT + ZTEST
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LSHADE + AFLAT + ZSET + D565
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LSHADE + AFLAT + ZSET
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LSHADE + AFLAT + D565
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LSHADE + AFLAT
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LMAP + ZTEST + ZSET + D565
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LMAP + ZTEST + ZSET
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LMAP + ZSET + D565
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LMAP + ZSET
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LSHADE + ZTEST + ZSET + D565
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LSHADE + ZTEST + ZSET
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LSHADE + ZTEST + D565
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LSHADE + ZTEST
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LSHADE + ZSET + D565
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LSHADE + ZSET
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LSHADE + D565
 

Definition at line 319 of file /span.c.

#define SPANROP   TMAP + LSHADE
 

Definition at line 319 of file /span.c.

#define SPANROP   LSHADE + AFLAT + ZTEST + ZSET + D565
 

Definition at line 319 of file /span.c.

#define SPANROP   LSHADE + AFLAT + ZTEST + ZSET
 

Definition at line 319 of file /span.c.

#define SPANROP   LSHADE + AFLAT + ZTEST + D565
 

Definition at line 319 of file /span.c.

#define SPANROP   LSHADE + AFLAT + ZTEST
 

Definition at line 319 of file /span.c.

#define SPANROP   LSHADE + AFLAT + ZSET + D565
 

Definition at line 319 of file /span.c.

#define SPANROP   LSHADE + AFLAT + ZSET
 

Definition at line 319 of file /span.c.

#define SPANROP   LSHADE + AFLAT + D565
 

Definition at line 319 of file /span.c.

#define SPANROP   LSHADE + AFLAT
 

Definition at line 319 of file /span.c.

#define SPANROP   LSHADE + ZTEST + ZSET + D565
 

Definition at line 319 of file /span.c.

#define SPANROP   LSHADE + ZTEST + ZSET
 

Definition at line 319 of file /span.c.

#define SPANROP   LSHADE + ZTEST + D565
 

Definition at line 319 of file /span.c.

#define SPANROP   LSHADE + ZTEST
 

Definition at line 319 of file /span.c.

#define SPANROP   LSHADE + ZSET + D565
 

Definition at line 319 of file /span.c.

#define SPANROP   LSHADE + ZSET
 

Definition at line 319 of file /span.c.

#define SPANROP   LSHADE + D565
 

Definition at line 319 of file /span.c.

#define SPANROP   LSHADE
 

Definition at line 319 of file /span.c.


Function Documentation

void GENESISCC Span_C_LSHADE_555 void   ) 
 

Definition at line 46 of file /span.c.

References GENESISCC.

00046                                                        {
00047                                 #include "Span_Factory.h"
00048                                 }

void GENESISCC Span_C_LSHADE_565 void   ) 
 

Definition at line 50 of file /span.c.

References GENESISCC.

00050                                                        {
00051                                 #include "Span_Factory.h"
00052                                 }

void GENESISCC Span_C_LSHADE_AFLAT_555 void   ) 
 

Definition at line 82 of file /span.c.

References GENESISCC.

00082                                                              {
00083                                 #include "Span_Factory.h"
00084                                 }

void GENESISCC Span_C_LSHADE_AFLAT_565 void   ) 
 

Definition at line 86 of file /span.c.

References GENESISCC.

00086                                                              {
00087                                 #include "Span_Factory.h"
00088                                 }

void GENESISCC Span_C_LSHADE_AFLAT_ZSET_555 void   ) 
 

Definition at line 91 of file /span.c.

References GENESISCC.

00091                                                                   {
00092                                 #include "Span_Factory.h"
00093                                 }

void GENESISCC Span_C_LSHADE_AFLAT_ZSET_565 void   ) 
 

Definition at line 95 of file /span.c.

References GENESISCC.

00095                                                                   {
00096                                 #include "Span_Factory.h"
00097                                 }

void GENESISCC Span_C_LSHADE_AFLAT_ZTEST_555 void   ) 
 

Definition at line 100 of file /span.c.

References GENESISCC.

00100                                                                    {
00101                                 #include "Span_Factory.h"
00102                                 }

void GENESISCC Span_C_LSHADE_AFLAT_ZTEST_565 void   ) 
 

Definition at line 104 of file /span.c.

References GENESISCC.

00104                                                                    {
00105                                 #include "Span_Factory.h"
00106                                 }

void GENESISCC Span_C_LSHADE_AFLAT_ZTEST_ZSET_555 void   ) 
 

Definition at line 109 of file /span.c.

References GENESISCC.

00109                                                                         {
00110                                 #include "Span_Factory.h"
00111                                 }

void GENESISCC Span_C_LSHADE_AFLAT_ZTEST_ZSET_565 void   ) 
 

Definition at line 113 of file /span.c.

References GENESISCC.

00113                                                                         {
00114                                 #include "Span_Factory.h"
00115                                 }

void GENESISCC Span_C_LSHADE_ZSET_555 void   ) 
 

Definition at line 55 of file /span.c.

References GENESISCC.

00055                                                                 {
00056                                 #include "Span_Factory.h"
00057                                 }

void GENESISCC Span_C_LSHADE_ZSET_565 void   ) 
 

Definition at line 59 of file /span.c.

References GENESISCC.

00059                                                             {
00060                                 #include "Span_Factory.h"
00061                                 }

void GENESISCC Span_C_LSHADE_ZTEST_555 void   ) 
 

Definition at line 64 of file /span.c.

References GENESISCC.

00064                                                              {
00065                                 #include "Span_Factory.h"
00066                                 }

void GENESISCC Span_C_LSHADE_ZTEST_565 void   ) 
 

Definition at line 68 of file /span.c.

References GENESISCC.

00068                                                              {
00069                                 #include "Span_Factory.h"
00070                                 }

void GENESISCC Span_C_LSHADE_ZTEST_ZSET_555 void   ) 
 

Definition at line 73 of file /span.c.

References GENESISCC.

00073                                                                   {
00074                                 #include "Span_Factory.h"
00075                                 }

void GENESISCC Span_C_LSHADE_ZTEST_ZSET_565 void   ) 
 

Definition at line 77 of file /span.c.

References GENESISCC.

00077                                                                   {
00078                                 #include "Span_Factory.h"
00079                                 }

void GENESISCC Span_C_TMAP_LMAP_AFLAT_ZTEST_ZSET_555 void   ) 
 

Definition at line 280 of file /span.c.

References GENESISCC.

00280                                                                            {
00281                                 #include "Span_Factory.h"
00282                                 }

void GENESISCC Span_C_TMAP_LMAP_AFLAT_ZTEST_ZSET_565 void   ) 
 

Definition at line 284 of file /span.c.

References GENESISCC.

00284                                                                            {
00285                                 #include "Span_Factory.h"
00286                                 }

void GENESISCC Span_C_TMAP_LMAP_AMAP_555 void   ) 
 

Definition at line 244 of file /span.c.

References GENESISCC.

00244                                                                {
00245                                 #include "Span_Factory.h"
00246                                 }

void GENESISCC Span_C_TMAP_LMAP_AMAP_565 void   ) 
 

Definition at line 248 of file /span.c.

References GENESISCC.

00248                                                                {
00249                                 #include "Span_Factory.h"
00250                                 }

void GENESISCC Span_C_TMAP_LMAP_AMAP_ZSET_555 void   ) 
 

Definition at line 253 of file /span.c.

References GENESISCC.

00253                                                                     {
00254                                 #include "Span_Factory.h"
00255                                 }

void GENESISCC Span_C_TMAP_LMAP_AMAP_ZSET_565 void   ) 
 

Definition at line 257 of file /span.c.

References GENESISCC.

00257                                                                     {
00258                                 #include "Span_Factory.h"
00259                                 }

void GENESISCC Span_C_TMAP_LMAP_AMAP_ZTEST_555 void   ) 
 

Definition at line 262 of file /span.c.

References GENESISCC.

00262                                                                      {
00263                                 #include "Span_Factory.h"
00264                                 }

void GENESISCC Span_C_TMAP_LMAP_AMAP_ZTEST_565 void   ) 
 

Definition at line 266 of file /span.c.

References GENESISCC.

00266                                                                      {
00267                                 #include "Span_Factory.h"
00268                                 }

void GENESISCC Span_C_TMAP_LMAP_AMAP_ZTEST_ZSET_555 void   ) 
 

Definition at line 271 of file /span.c.

References GENESISCC.

00271                                                                           {
00272                                 #include "Span_Factory.h"
00273                                 }

void GENESISCC Span_C_TMAP_LMAP_AMAP_ZTEST_ZSET_565 void   ) 
 

Definition at line 275 of file /span.c.

References GENESISCC.

00275                                                                           {
00276                                 #include "Span_Factory.h"
00277                                 }

void GENESISCC Span_C_TMAP_LMAP_Z1 void   ) 
 

void GENESISCC Span_C_TMAP_LMAP_ZSET_555 void   ) 
 

Definition at line 154 of file /span.c.

References GENESISCC.

00154                                                                {
00155                                 #include "Span_Factory.h"
00156                                 }

void GENESISCC Span_C_TMAP_LMAP_ZSET_565 void   ) 
 

Definition at line 158 of file /span.c.

References GENESISCC.

00158                                                                {
00159                                 #include "Span_Factory.h"
00160                                 }

void GENESISCC Span_C_TMAP_LMAP_ZTEST_ZSET_555 void   ) 
 

Definition at line 163 of file /span.c.

References GENESISCC.

00163                                                                      {
00164                                 #include "Span_Factory.h"
00165                                 }

void GENESISCC Span_C_TMAP_LMAP_ZTEST_ZSET_565 void   ) 
 

Definition at line 167 of file /span.c.

References GENESISCC.

00167                                                                      {
00168                                 #include "Span_Factory.h"
00169                                 }

void GENESISCC Span_C_TMAP_LSHADE_555 void   ) 
 

Definition at line 118 of file /span.c.

References GENESISCC.

00118                                                             {
00119                                 #include "Span_Factory.h"
00120                                 }

void GENESISCC Span_C_TMAP_LSHADE_565 void   ) 
 

Definition at line 122 of file /span.c.

References GENESISCC.

00122                                                             {
00123                                 #include "Span_Factory.h"
00124                                 }

void GENESISCC Span_C_TMAP_LSHADE_AFLAT_555 void   ) 
 

Definition at line 172 of file /span.c.

References GENESISCC.

00172                                                                   {
00173                                 #include "Span_Factory.h"
00174                                 }

void GENESISCC Span_C_TMAP_LSHADE_AFLAT_565 void   ) 
 

Definition at line 176 of file /span.c.

References GENESISCC.

00176                                                                   {
00177                                 #include "Span_Factory.h"
00178                                 }

void GENESISCC Span_C_TMAP_LSHADE_AFLAT_ZSET_555 void   ) 
 

Definition at line 181 of file /span.c.

References GENESISCC.

00181                                                                        {
00182                                 #include "Span_Factory.h"
00183                                 }

void GENESISCC Span_C_TMAP_LSHADE_AFLAT_ZSET_565 void   ) 
 

Definition at line 185 of file /span.c.

References GENESISCC.

00185                                                                        {
00186                                 #include "Span_Factory.h"
00187                                 }

void GENESISCC Span_C_TMAP_LSHADE_AFLAT_ZTEST_555 void   ) 
 

Definition at line 190 of file /span.c.

References GENESISCC.

00190                                                                         {
00191                                 #include "Span_Factory.h"
00192                                 }

void GENESISCC Span_C_TMAP_LSHADE_AFLAT_ZTEST_565 void   ) 
 

Definition at line 194 of file /span.c.

References GENESISCC.

00194                                                                         {
00195                                 #include "Span_Factory.h"
00196                                 }

void GENESISCC Span_C_TMAP_LSHADE_AFLAT_ZTEST_ZSET_555 void   ) 
 

Definition at line 199 of file /span.c.

References GENESISCC.

00199                                                                              {
00200                                 #include "Span_Factory.h"
00201                                 }

void GENESISCC Span_C_TMAP_LSHADE_AFLAT_ZTEST_ZSET_565 void   ) 
 

Definition at line 203 of file /span.c.

References GENESISCC.

00203                                                                              {
00204                                 #include "Span_Factory.h"
00205                                 }

void GENESISCC Span_C_TMAP_LSHADE_AMAP_555 void   ) 
 

Definition at line 208 of file /span.c.

References GENESISCC.

00208                                                                  {
00209                                 #include "Span_Factory.h"
00210                                 }

void GENESISCC Span_C_TMAP_LSHADE_AMAP_565 void   ) 
 

Definition at line 212 of file /span.c.

References GENESISCC.

00212                                                                  {
00213                                 #include "Span_Factory.h"
00214                                 }

void GENESISCC Span_C_TMAP_LSHADE_AMAP_AFLAT_555 void   ) 
 

Definition at line 289 of file /span.c.

References GENESISCC.

00289                                                                        {
00290                                 #include "Span_Factory.h"
00291                                 }

void GENESISCC Span_C_TMAP_LSHADE_AMAP_AFLAT_565 void   ) 
 

Definition at line 293 of file /span.c.

References GENESISCC.

00293                                                                        {
00294                                 #include "Span_Factory.h"
00295                                 }

void GENESISCC Span_C_TMAP_LSHADE_AMAP_AFLAT_ZSET_555 void   ) 
 

Definition at line 298 of file /span.c.

References GENESISCC.

00298                                                                             {
00299                                 #include "Span_Factory.h"
00300                                 }

void GENESISCC Span_C_TMAP_LSHADE_AMAP_AFLAT_ZSET_565 void   ) 
 

Definition at line 302 of file /span.c.

References GENESISCC.

00302                                                                             {
00303                                 #include "Span_Factory.h"
00304                                 }

void GENESISCC Span_C_TMAP_LSHADE_AMAP_AFLAT_ZTEST_555 void   ) 
 

Definition at line 307 of file /span.c.

References GENESISCC.

00307                                                                              {
00308                                 #include "Span_Factory.h"
00309                                 }

void GENESISCC Span_C_TMAP_LSHADE_AMAP_AFLAT_ZTEST_565 void   ) 
 

Definition at line 311 of file /span.c.

References GENESISCC.

00311                                                                              {
00312                                 #include "Span_Factory.h"
00313                                 }

void GENESISCC Span_C_TMAP_LSHADE_AMAP_AFLAT_ZTEST_ZSET_555 void   ) 
 

Definition at line 316 of file /span.c.

References GENESISCC.

00316                                                                                   {
00317                                 #include "Span_Factory.h"
00318                                 }

void GENESISCC Span_C_TMAP_LSHADE_AMAP_AFLAT_ZTEST_ZSET_565 void   ) 
 

Definition at line 320 of file /span.c.

References GENESISCC.

00320                                                                                   {
00321                                 #include "Span_Factory.h"
00322                                 }

void GENESISCC Span_C_TMAP_LSHADE_AMAP_ZSET_555 void   ) 
 

Definition at line 217 of file /span.c.

References GENESISCC.

00217                                                                       {
00218                                 #include "Span_Factory.h"
00219                                 }

void GENESISCC Span_C_TMAP_LSHADE_AMAP_ZSET_565 void   ) 
 

Definition at line 221 of file /span.c.

References GENESISCC.

00221                                                                       {
00222                                 #include "Span_Factory.h"
00223                                 }

void GENESISCC Span_C_TMAP_LSHADE_AMAP_ZTEST_555 void   ) 
 

Definition at line 226 of file /span.c.

References GENESISCC.

00226                                                                        {
00227                                 #include "Span_Factory.h"
00228                                 }

void GENESISCC Span_C_TMAP_LSHADE_AMAP_ZTEST_565 void   ) 
 

Definition at line 230 of file /span.c.

References GENESISCC.

00230                                                                        {
00231                                 #include "Span_Factory.h"
00232                                 }

void GENESISCC Span_C_TMAP_LSHADE_AMAP_ZTEST_ZSET_555 void   ) 
 

Definition at line 235 of file /span.c.

References GENESISCC.

00235                                                                             {
00236                                 #include "Span_Factory.h"
00237                                 }

void GENESISCC Span_C_TMAP_LSHADE_AMAP_ZTEST_ZSET_565 void   ) 
 

Definition at line 239 of file /span.c.

References GENESISCC.

00239                                                                             {
00240                                 #include "Span_Factory.h"
00241                                 }

void GENESISCC Span_C_TMAP_LSHADE_ZSET_555 void   ) 
 

Definition at line 127 of file /span.c.

References GENESISCC.

00127                                                                  {
00128                                 #include "Span_Factory.h"
00129                                 }

void GENESISCC Span_C_TMAP_LSHADE_ZSET_565 void   ) 
 

Definition at line 131 of file /span.c.

References GENESISCC.

00131                                                                  {
00132                                 #include "Span_Factory.h"
00133                                 }

void GENESISCC Span_C_TMAP_LSHADE_ZTEST_555 void   ) 
 

Definition at line 136 of file /span.c.

References GENESISCC.

00136                                                                   {
00137                                 #include "Span_Factory.h"
00138                                 }

void GENESISCC Span_C_TMAP_LSHADE_ZTEST_565 void   ) 
 

Definition at line 140 of file /span.c.

References GENESISCC.

00140                                                                   {
00141                                 #include "Span_Factory.h"
00142                                 }

void GENESISCC Span_C_TMAP_LSHADE_ZTEST_ZSET_555 void   ) 
 

Definition at line 145 of file /span.c.

References GENESISCC.

00145                                                                        {
00146                                 #include "Span_Factory.h"
00147                                 }

void GENESISCC Span_C_TMAP_LSHADE_ZTEST_ZSET_565 void   ) 
 

Definition at line 149 of file /span.c.

References GENESISCC.

00149                                                                        {
00150                                 #include "Span_Factory.h"
00151                                 }

Span_DrawFunction GENESISCC Span_GetDrawFunction geROP  ROP  ) 
 

Definition at line 381 of file /span.c.

References Span_FunctionTableEntry::Active, GE_ROP_END, GENESISCC, NULL, Span_DrawFunction, and Span_FunctionTable.

Referenced by TRaster_Rasterize().

00382 {
00383         assert( ROP >= 0 );
00384         assert( ROP < GE_ROP_END );
00385         assert( Span_FunctionTable[ROP].ROP == ROP );
00386         assert( Span_FunctionTable[ROP].Active != NULL );
00387 
00388         return Span_FunctionTable[ROP].Active;
00389 }

void GENESISCC Span_LightMapSample void   ) 
 

Definition at line 400 of file /span.c.

References BRight, GENESISCC, GRight, int32, Triangle_Triangle::LightMapBits, Triangle_Triangle::LightMapHeight, Triangle_Triangle::LightMapMaxU, Triangle_Triangle::LightMapMaxV, Triangle_Triangle::LightMapScaleU, Triangle_Triangle::LightMapScaleV, Triangle_Triangle::LightMapShiftU, Triangle_Triangle::LightMapShiftV, Triangle_Triangle::LightMapStride, Triangle_Triangle::LightMapWidth, RGB_FXP_SHIFTER, RRight, TOPDOWN_OR_BOTTOMUP, Triangle, URight, and VRight.

00401 {       // use bilinear filter to sample the lightmap 
00402         int32 LMU,LMV;
00403         unsigned char *LM0,*LM1;
00404         unsigned char *LM2,*LM3;
00405         int C01,C23;
00406         int UFract01,VFract01;
00407         
00408         LMU = ((URight - Triangle.LightMapShiftU)>>8) * Triangle.LightMapScaleU;
00409         //LMU = (URight>>8)*Triangle.LightMapScaleU - Triangle.LightMapShiftU;
00410         // Clamp LMU to stay bounded to lightmap (no tiling)
00411         if (LMU<0) LMU=0;
00412         if (LMU>Triangle.LightMapMaxU)  LMU = Triangle.LightMapMaxU;
00413 
00414         LMV = ((VRight - Triangle.LightMapShiftV)>>8) * Triangle.LightMapScaleV;
00415         //LMV = (VRight>>8)*Triangle.LightMapScaleV - Triangle.LightMapShiftV;
00416 
00417         // Clamp LMV to stay bounded to lightmap (no tiling)
00418         if (LMV<0) LMV=0;
00419         if (LMV>Triangle.LightMapMaxV) LMV = Triangle.LightMapMaxV;
00420         
00421         // address base corner into lightmap by LMU,LMV
00422         LM0 = Triangle.LightMapBits + (3*(LMU>>16) + TOPDOWN_OR_BOTTOMUP((LMV>>16) * Triangle.LightMapStride));
00423         #pragma message ("is there a clamping problem here somewhere?  see a hi-res lightmap only rendering...")
00424 
00425         #if 1
00426                 // address other corners, clamping
00427                 if ((LMV>>16) < (Triangle.LightMapHeight-1)) 
00428                         LM2 = LM0 + TOPDOWN_OR_BOTTOMUP(Triangle.LightMapStride);
00429                 else
00430                         LM2 = LM0;
00431                 if ((LMU>>16) < (Triangle.LightMapWidth-1))
00432                         {
00433                                 LM1 = LM0 + 3;
00434                                 LM3 = LM2 + 3;
00435                         }
00436                 else
00437                         {
00438                                 LM1 = LM0;
00439                                 LM3 = LM2;
00440                         }
00441                 UFract01 = (LMU&0xFFFF);
00442                 VFract01 = (LMV&0xFFFF);
00443                 C01 =    (*LM0) + ((( *LM1 - *LM0 ) * UFract01)>>16);           
00444                 C23 =    (*LM2) + ((( *LM3 - *LM2 ) * UFract01)>>16);           
00445                 RRight =(   C01     + (((  C23 -  C01 ) * VFract01)>>16))<<RGB_FXP_SHIFTER;
00446 
00447                 LM0++; LM1++;
00448                 C01 =    (*LM0) + ((( *LM1 - *LM0 ) * UFract01)>>16);           
00449                 
00450                 LM2++; LM3++;
00451                 C23 =    (*LM2) + ((( *LM3 - *LM2 ) * UFract01)>>16);           
00452                 GRight =(   C01     + (((  C23 -  C01 ) * VFract01)>>16))<<RGB_FXP_SHIFTER;                     
00453 
00454                 LM0++; LM1++; 
00455                 C01 =    (*LM0) + ((( *LM1 - *LM0 ) * UFract01)>>16);           
00456 
00457                 LM2++; LM3++;
00458                 C23 =    (*LM2) + ((( *LM3 - *LM2 ) * UFract01)>>16);           
00459                 BRight =(   C01 + (((  C23 -  C01 ) * VFract01)>>16))<<RGB_FXP_SHIFTER;                 
00460         #else
00461                 RRight = *LM0<<RGB_FXP_SHIFTER; LM0++;
00462                 GRight = *LM0<<RGB_FXP_SHIFTER; LM0++;
00463                 BRight = *LM0<<RGB_FXP_SHIFTER; 
00464                 #pragma message ("lightmap filtering disabled")
00465         #endif
00466 
00467         //R=RRight;G=GRight;B=BRight;
00468         //dR = dG= dB = 0;
00469 }

geBoolean GENESISCC Span_SetOutputMode geSpan_DestinationFormat  DestFormat,
geSpan_CPU  CPU
 

Definition at line 362 of file /span.c.

References Span_FunctionTableEntry::Active, Span_FunctionTableEntry::Function, GE_ROP_END, GE_SPAN_DESTINATION_FORMATS, GE_SPAN_HARDWARE_INTEL, GE_SPAN_HARDWARE_VERSIONS, GE_TRUE, geBoolean, GENESISCC, NULL, and Span_FunctionTable.

Referenced by SoftDrv_Init().

00363 {
00364         int i;
00365 
00366         assert( DestFormat >= 0 );
00367         assert( DestFormat < GE_SPAN_DESTINATION_FORMATS );
00368         assert( CPU >= 0 );
00369         assert( CPU < GE_SPAN_HARDWARE_VERSIONS );
00370 
00371         for (i=0; i< GE_ROP_END; i++)
00372                 {
00373                         assert( Span_FunctionTable[i].ROP == i );
00374                         Span_FunctionTable[i].Active = Span_FunctionTable[i].Function[GE_SPAN_HARDWARE_INTEL][DestFormat];
00375                         if (Span_FunctionTable[i].Function[CPU][DestFormat]!=NULL)
00376                                 Span_FunctionTable[i].Active = Span_FunctionTable[i].Function[CPU][DestFormat];
00377                 }
00378         return GE_TRUE;
00379 }


Variable Documentation

int32 BRight
 

Definition at line 27 of file /span.c.

Referenced by Span_LightMapSample().

int32 GRight
 

Definition at line 27 of file /span.c.

Referenced by Span_LightMapSample().

int32 RRight
 

Definition at line 27 of file /span.c.

Referenced by Span_LightMapSample().

Span_FunctionTableEntry Span_FunctionTable[GE_ROP_END]
 

Definition at line 325 of file /span.c.

Referenced by Span_GetDrawFunction(), and Span_SetOutputMode().

int32 URight
 

Definition at line 27 of file /span.c.

Referenced by Span_LightMapSample().

int32 VRight
 

Definition at line 27 of file /span.c.

Referenced by BackRotateVector(), and Span_LightMapSample().


Generated on Tue Sep 30 12:38:08 2003 for GTestAndEngine by doxygen 1.3.2