typedef struct { MAV_object *obj; MAV_callbackDrawFn fn; MAV_drawInfo di; MAV_drawInfo *dip; MAV_matrix mat; float dist2; } MAV_transObjData;
mav_transparentObjectsManage maintains a list of these data structures (which is reset at the start of each frame). mav_transparentObjectsRender is called at the end of the frame to traverse this list depth sorting the objects and rendering them. This ensures that transparent objects are dealt with correctly.
This use of this feature is controlled by the option variable mav_opt_trans and is initially disabled. In order for object to take advantage of this feature they must have callback function registered to get their surface parameters and matrix.