29 #include "../../../idlib/precompiled.h"
57 if ( floodFill && !dmapGlobals.
noFlood ) {
96 }
else if ( !dmapGlobals.
noTJunc ) {
115 oldVerbose = dmapGlobals.
verbose;
138 dmapGlobals.
verbose = oldVerbose;
151 "Usage: dmap [options] mapfile\n"
153 "noCurves = don't process curves\n"
154 "noCM = don't create collision map\n"
155 "noAAS = don't create AAS files\n"
174 dmapGlobals.
glview =
false;
209 if ( args.
Argc() < 2 ) {
224 for ( i = 1 ; i < args.
Argc() ; i++ ) {
230 if ( s[0] ==
'\0' ) {
236 dmapGlobals.
glview =
true;
255 }
else if ( !
idStr::Icmp( s,
"verboseentities" ) ) {
288 com_outputMsg =
true;
295 if ( i >= args.
Argc() ) {
299 passedName = args.
Argv(i);
301 if ( passedName.
Icmpn(
"maps/", 4 ) != 0 ) {
302 passedName =
"maps/" + passedName;
305 idStr stripped = passedName;
311 if ( passedName.
Right( 4 ) !=
".reg" ) {
319 passedName = stripped;
348 common->
Printf(
"%5.0f seconds for dmap\n", ( end - start ) * 0.001
f );
364 common->
Printf(
"-------------------------------------\n" );
365 common->
Printf(
"%5.0f seconds to create collision map\n", ( end - start ) * 0.001f );
368 if ( !noAAS && !region ) {
381 if ( com_outputMsg && com_hwndMsg !=
NULL ) {
382 unsigned int msg = ::RegisterWindowMessage( DMAP_DONE );
383 ::PostMessage( com_hwndMsg, msg, 0, 0 );
virtual void FreeMap(void)=0
void MakeTreePortals(tree_t *tree)
void FixGlobalTjunctions(uEntity_t *e)
bool LoadDMapFile(const char *filename)
void Dmap_f(const idCmdArgs &args)
void PutPrimitivesInAreas(uEntity_t *e)
virtual void LoadMap(const idMapFile *mapFile)=0
void ResetDmapGlobals(void)
idList< mapLight_t * > mapLights
int Sys_Milliseconds(void)
idFileSystem * fileSystem
tree_t * FaceBSP(bspface_t *list)
shadowOptLevel_t shadowOptLevel
void Prelight(uEntity_t *e)
void FixEntityTjunctions(uEntity_t *e)
int Icmp(const char *text) const
idStr & BackSlashesToSlashes(void)
int Icmpn(const char *text, int n) const
virtual void RemoveFile(const char *relativePath)=0
virtual void BufferCommandText(cmdExecution_t exec, const char *text)=0
void Dmap(const idCmdArgs &args)
void FloodAreas(uEntity_t *e)
idStr & StripFileExtension(void)
bspface_t * MakeStructuralBspFaceList(primitive_t *list)
static void Copynz(char *dest, const char *src, int destsize)
virtual void virtual void virtual void virtual void PrintWarnings(void)=0
const char * Right(int len, idStr &result) const
virtual void Printf(const char *fmt,...) id_attribute((format(printf
bool ProcessModel(uEntity_t *e, bool floodFill)
void RunAAS_f(const idCmdArgs &args)
bool FloodEntities(tree_t *tree)
void LeakFile(tree_t *tree)
const char * Argv(int arg) const
void WriteOutputFile(void)
void ClipSidesByTree(uEntity_t *e)
void FilterBrushesIntoTree(uEntity_t *e)
virtual void ClearWarnings(const char *reason)=0
virtual void SetRefreshOnPrint(bool set)=0
dmapGlobals_t dmapGlobals
void OptimizeEntity(uEntity_t *e)
virtual void Error(const char *fmt,...) id_attribute((format(printf
void FillOutside(uEntity_t *e)
virtual void virtual void Warning(const char *fmt,...) id_attribute((format(printf
int sprintf(idStr &string, const char *fmt,...)
idCollisionModelManager * collisionModelManager