1 /* If this is set to a non-zero value then kzsort.c hijacks the pipeline */
2 #define KZSORT_ON 1
3 
4 /* maximum number of modules likely to appear on-screen */
5 #define MAX_NUMBER_OF_VISIBLE_MODULES 400
6 
7 struct KItem
8 {
9 	POLYHEADER *PolyPtr;
10 
11 	int SortKey;
12 };
13 
14 struct KObject
15 {
16 	DISPLAYBLOCK *DispPtr;
17 
18 	int SortKey;
19 
20 	int DrawBeforeEnvironment;
21 };
22 
23 /* render with new z-sort */
24 extern void KRenderItems(VIEWDESCRIPTORBLOCK *VDBPtr);
25 
26 /* generic item shape function */
27 extern void KShapeItemsInstr(SHAPEINSTR *shapeinstrptr);
28 extern void OutputKItem(int *shapeitemptr);
29 
30 extern void RenderThisDisplayblock(DISPLAYBLOCK *dbPtr);
31