/* Power Render Polgon Sorting Interface */

#ifndef _PRSORT_
#define _PRSORT_

#ifdef __cplusplus
  extern "C" {
#endif

extern PR_DWORD         *itable;
extern PR_DWORD         *ztable;
extern PR_DWORD         *i0table;
extern PR_DWORD         *i1table;
extern PR_RENDERSTRUCT  *PR_RenderElements;
extern PR_DWORD         PR_DrawElements;

void PR_NewFrame (void);
/* -----------------------------------------------------------------------
   Function:   PR_NewFrame
   Purpose:    Clears out all the rendering elements 
   Parameters: None
   Return:     None
   ----------------------------------------------------------------------- */


void PR_RadixSort16 (PR_DWORD max);
/* -----------------------------------------------------------------------
   Function:   PR_RadixSort16
   Purpose:    16 bit radix sort 
   Parameters: max - Number of elements to sort
   Return:     None
   ----------------------------------------------------------------------- */


void PR_RadixSort (PR_DWORD max);
/* -----------------------------------------------------------------------
   Function:   PR_RadixSort
   Purpose:    32 bit radix sort 
   Parameters: max - Number of elements to sort
   Return:     None
   ----------------------------------------------------------------------- */


#ifdef __cplusplus
}
#endif

#endif


