Function leveldrawbsp
#include <macawlevel.h>int leveldrawbsp(int level, int *faces);
Draws only the parts of the level the camera can see, working them out through the level's BSP tree and portals (the way it's cut into pieces). This is the fast way, and the one to use each frame.
Parameters
levelint- The level to draw.
facesint *- The address of an
intto get how many faces were drawn, like&n, or NULL.
Returns int
How many leaves (pieces of the level) were drawn.
In Drawing, with leveldraw, leveldrawabove, leveldrawgpu, leveldrawgpuabove.