ufo2map.c File Reference

Starting point for map compiler. More...

#include "lighting.h"
#include "bsp.h"
#include "check/check.h"
#include "check/checkentities.h"
#include "check/checklib.h"
#include "../../shared/shared.h"
#include "ufo2map.h"
Include dependency graph for ufo2map.c:

Go to the source code of this file.

Data Structures

struct  usagePair_s

Defines

#define VERSION   "1.2.5"
#define REVISION   "1"
#define LIGHTING_NONE   1
#define LIGHTING_DAY_ONLY   2
#define LIGHTING_NIGHT_ONLY   3

Typedefs

typedef struct usagePair_s usagePair_t

Functions

static void Usage (void)
 print usage information.
void Com_Printf (const char *format,...)
qboolean AbortPrint (const verbosityLevel_t msgVerbLevel)
 return nonzero if printing should be aborted based on the command line verbosity level and the importance of the message
void Verb_Printf (const verbosityLevel_t msgVerbLevel, const char *format,...)
 decides wether to proceed with output based on verbosity level
static void U2M_Parameter (int argc, const char **argv)
 Check for bsping, lighting and checking/fixing command line parameters.
static void U2M_SetDefaultConfigValues (void)
 Set default values.
void PrintMapName (void)
 print name in concise form for lower verbosity levels. verbosity check done before calling this function.
int main (int argc, const char **argv)

Variables

mapConfig_t config
static char mapFilename [MAX_OSPATH]
struct memPool_scom_genericPool
struct memPool_scom_fileSysPool
char baseFilename [MAX_OSPATH]
static const usagePair_t usageArray []

Detailed Description

Starting point for map compiler.

Definition in file ufo2map.c.


Define Documentation

#define LIGHTING_DAY_ONLY   2

Definition at line 31 of file ufo2map.c.

Referenced by main(), and U2M_Parameter().

#define LIGHTING_NIGHT_ONLY   3

Definition at line 32 of file ufo2map.c.

Referenced by main(), and U2M_Parameter().

#define LIGHTING_NONE   1

Definition at line 30 of file ufo2map.c.

Referenced by main(), and U2M_Parameter().

#define REVISION   "1"

Definition at line 27 of file ufo2map.c.

Referenced by U2M_Parameter().

#define VERSION   "1.2.5"

Definition at line 26 of file ufo2map.c.

Referenced by main(), and U2M_Parameter().


Typedef Documentation

typedef struct usagePair_s usagePair_t

Function Documentation

qboolean AbortPrint ( const verbosityLevel_t  msgVerbLevel  ) 

return nonzero if printing should be aborted based on the command line verbosity level and the importance of the message

Parameters:
msgVerbLevel insignificance of the message. Larger numbers mean the message is less important. The message will first be printed if the msgVerbLevel is equal to the config.verbosity.
See also:
verbosityLevel_t

Definition at line 199 of file ufo2map.c.

References config.

Referenced by Check_Printf(), and Verb_Printf().

void Com_Printf ( const char *  format,
  ... 
)

Definition at line 180 of file ufo2map.c.

References Q_vsnprintf().

int main ( int  argc,
const char **  argv 
)
void PrintMapName ( void   ) 

print name in concise form for lower verbosity levels. verbosity check done before calling this function.

Definition at line 592 of file ufo2map.c.

References Com_Printf(), config, and mapFilename.

Referenced by Check_Printf(), and main().

static void U2M_Parameter ( int  argc,
const char **  argv 
) [static]

Check for bsping, lighting and checking/fixing command line parameters.

Definition at line 228 of file ufo2map.c.

References byte, config, i, LIGHTING_DAY_ONLY, LIGHTING_NIGHT_ONLY, LIGHTING_NONE, qfalse, qtrue, REVISION, Sys_Error(), threadstate, Usage(), VERB_LESS, VERB_NORMAL, Verb_Printf(), and VERSION.

Referenced by main().

static void U2M_SetDefaultConfigValues ( void   )  [static]

Set default values.

Definition at line 494 of file ufo2map.c.

References AngleVectors(), ColorNormalize(), config, LIGHTMAP_DAY, LIGHTMAP_NIGHT, qfalse, qtrue, Vector2Set, VectorSet, and VERB_NORMAL.

Referenced by main().

static void Usage ( void   )  [static]

print usage information.

Definition at line 154 of file ufo2map.c.

References Com_Printf(), usagePair_s::desc, usagePair_s::flags, and len.

Referenced by main(), and U2M_Parameter().

void Verb_Printf ( const verbosityLevel_t  msgVerbLevel,
const char *  format,
  ... 
)

decides wether to proceed with output based on verbosity level

See also:
Com_Printf, Check_Printf, AbortPrint

Definition at line 208 of file ufo2map.c.

References AbortPrint(), and Q_vsnprintf().


Variable Documentation

char baseFilename[MAX_OSPATH]

This is used for extra file output functions

Definition at line 62 of file ufo2map.c.

Referenced by DoRouting(), and main().

Definition at line 60 of file ufo2map.c.

Definition at line 59 of file ufo2map.c.

Definition at line 56 of file ufo2map.c.

char mapFilename[MAX_OSPATH] [static]

Definition at line 57 of file ufo2map.c.

Referenced by main(), and PrintMapName().

const usagePair_t usageArray[] [static]

Definition at line 69 of file ufo2map.c.


Generated by  doxygen 1.6.2