UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
bspslicer.h File Reference

Go to the source code of this file.

Functions

void SL_BSPSlice (const TR_TILE_TYPE *model, float thickness, int scale, bool singleFile, bool multipleContour)
 

Function Documentation

void SL_BSPSlice ( const TR_TILE_TYPE *  model,
float  thickness,
int  scale,
bool  singleFile,
bool  multipleContour 
)
Parameters
[in]modelThe tile-info about the bsp-file we want to slice
[in]thicknessthe thickness of the brushes to render to the 2d map
[in]scaleThe scale of the png as passed via -s param. eg. 4 means: 1/4 or 1 pixels = 4 mapunits
[in]singleFilePut everything in one file. If false, create one file per level. As given by the -c param or the config default
[in]multipleContourAlso draw all contours below the current slice. As given by the -m param or the config default
Todo:
remove these values once the mins/maxs calculation works

Definition at line 315 of file bspslicer.cpp.

References AddPointToBounds(), dBspModel_t::dbmBox, i, MAX_WORLD_WIDTH, AABB::maxs, AABB::mins, PATHFINDING_HEIGHT, SL_SliceTheWorld(), and UNIT_HEIGHT.

Referenced by main().