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

SPAN.H File Reference

#include "basetype.h"

Go to the source code of this file.

Compounds

struct  SList
struct  SpanMinMax

Defines

#define MAXSPANS   25000
#define MAXSCANLINES   768

Typedefs

typedef SList SList

Functions

SListNewSList (void)
void FreeSList (SList *s)
void ResetSList (void)
void ResetSpans (uint32 Rows)

Variables

int32 NumCachedAlphaPolys
int32 NumCachedAlphaSpans
SpanMinMax SMinMax [MAXSCANLINES]
SList ScanHash [MAXSPANS]
int32 CurrentSList


Define Documentation

#define MAXSCANLINES   768
 

Definition at line 28 of file SPAN.H.

Referenced by AddSpan().

#define MAXSPANS   25000
 

Definition at line 27 of file SPAN.H.

Referenced by NewSList().


Typedef Documentation

typedef struct SList SList
 


Function Documentation

void FreeSList SList s  ) 
 

Definition at line 82 of file span.c.

References NULL, and s.

00083 {
00084     assert(s != NULL);
00085     s->Used  = 0;
00086 }

SList* NewSList void   ) 
 

Definition at line 263 of file D3D7xDrv/Gspan.cpp.

00264 {
00265 
00266         CurrentSList++;
00267         NumSpans++;
00268 
00269         assert(CurrentSList < MAX_SPANS);
00270 
00271         return &ScanHash[CurrentSList-1];
00272 
00273         return NULL;
00274 }

void ResetSList void   ) 
 

Definition at line 257 of file D3D7xDrv/Gspan.cpp.

00258 {
00259         CurrentSList = 0;
00260         NumSpans = 0;
00261 }

void ResetSpans uint32  Rows  ) 
 

Definition at line 91 of file span.c.

References SPAN_MINMAX::First, NULL, NumSpanPixels, ResetSList(), SMinMax, and uint32.

00092 { 
00093         uint32 i;
00094 
00095         for (i=0; i<Rows; i++) 
00096         {
00097                 SMinMax[i].First = NULL;
00098                 NumSpanPixels[i] = 0;
00099         }       
00100 
00101         ResetSList();
00102 }


Variable Documentation

int32 CurrentSList
 

Definition at line 56 of file SPAN.H.

int32 NumCachedAlphaPolys
 

Definition at line 46 of file SPAN.H.

int32 NumCachedAlphaSpans
 

Definition at line 47 of file SPAN.H.

SList ScanHash[MAXSPANS]
 

Definition at line 55 of file SPAN.H.

SpanMinMax SMinMax[MAXSCANLINES]
 

Definition at line 54 of file SPAN.H.


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