SwDispManager

From SWWorkshop

Jump to: navigation, search

In games, object display process is very important for performance utilization and display capability.

  • Culling mechanism, filters objects which are out side screen.
  • Layer Mechanism, sorts objects from background to foreground.
  • Item Display Control, manages item visiblities.

Functions

int   swDispManagerAdd(void(*dispFunc)(void*), void *obj,boolean *bEnabled,swRect *rect,int *layer); 
void  swDispManagerDel(int id);
void  swDispManagerExecute(); //This function should call between swGraphicsBeginDisplay()/swGraphicsEndDisplay() 
int   swDispManagerSizeOfAll();
int   swDispManagerSizeOfRendered();
Personal tools