doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions | Variables
maya_main.cpp File Reference
#include "../idlib/precompiled.h"
#include "Maya5.0/maya.h"
#include "exporter.h"
#include "maya_main.h"

Go to the source code of this file.

Macros

#define DEFAULT_ANIM_EPSILON   0.125f
 
#define DEFAULT_QUAT_EPSILON   ( 1.0f / 8192.0f )
 
#define SLOP_VERTEX   0.01f
 
#define SLOP_TEXCOORD   0.001f
 
#define MAX_PRINT_MSG   4096
 

Functions

void MayaError (const char *fmt,...)
 
bool OSPathToRelativePath (const char *osPath, idStr &qpath, const char *game)
 
idMat3 ConvertFromIdSpace (const idMat3 &idmat)
 
idVec3 ConvertFromIdSpace (const idVec3 &idpos)
 
idMat3 ConvertToIdSpace (const idMat3 &mat)
 
idVec3 ConvertToIdSpace (const idVec3 &pos)
 
idVec3 idVec (const MFloatPoint &point)
 
idVec3 idVec (const MMatrix &matrix)
 
idMat3 idMat (const MMatrix &matrix)
 
MFnDagNode * GetParent (MFnDagNode *joint)
 
void Maya_Shutdown (void)
 
const char * Maya_ConvertModel (const char *ospath, const char *commandline)
 
bool dllEntry (int version, idCommon *common, idSys *sys)
 

Variables

idStr errorMessage
 
bool initialized = false
 
const char * componentNames [6] = { "Tx", "Ty", "Tz", "Qx", "Qy", "Qz" }
 
idSyssys = NULL
 
idCommoncommon = NULL
 
idCVarSystemcvarSystem = NULL
 
const exporterDLLEntry_t ValidateEntry = &dllEntry
 
const exporterInterface_t ValidateConvert = &Maya_ConvertModel
 
const exporterShutdown_t ValidateShutdown = &Maya_Shutdown
 

Macro Definition Documentation

#define DEFAULT_ANIM_EPSILON   0.125f

Definition at line 40 of file maya_main.cpp.

#define DEFAULT_QUAT_EPSILON   ( 1.0f / 8192.0f )

Definition at line 41 of file maya_main.cpp.

#define MAX_PRINT_MSG   4096

Definition at line 75 of file maya_main.cpp.

#define SLOP_TEXCOORD   0.001f

Definition at line 44 of file maya_main.cpp.

#define SLOP_VERTEX   0.01f

Definition at line 43 of file maya_main.cpp.

Function Documentation

idMat3 ConvertFromIdSpace ( const idMat3 idmat)

Definition at line 238 of file maya_main.cpp.

idVec3 ConvertFromIdSpace ( const idVec3 idpos)

Definition at line 261 of file maya_main.cpp.

idMat3 ConvertToIdSpace ( const idMat3 mat)

Definition at line 276 of file maya_main.cpp.

idVec3 ConvertToIdSpace ( const idVec3 pos)

Definition at line 299 of file maya_main.cpp.

bool dllEntry ( int  version,
idCommon common,
idSys sys 
)

Definition at line 3109 of file maya_main.cpp.

MFnDagNode* GetParent ( MFnDagNode *  joint)

Definition at line 350 of file maya_main.cpp.

idMat3 idMat ( const MMatrix &  matrix)

Definition at line 332 of file maya_main.cpp.

idVec3 idVec ( const MFloatPoint &  point)

Definition at line 314 of file maya_main.cpp.

idVec3 idVec ( const MMatrix &  matrix)

Definition at line 323 of file maya_main.cpp.

const char* Maya_ConvertModel ( const char *  ospath,
const char *  commandline 
)

Definition at line 3086 of file maya_main.cpp.

void Maya_Shutdown ( void  )

Definition at line 3071 of file maya_main.cpp.

void MayaError ( const char *  fmt,
  ... 
)

Definition at line 59 of file maya_main.cpp.

bool OSPathToRelativePath ( const char *  osPath,
idStr qpath,
const char *  game 
)

Definition at line 192 of file maya_main.cpp.

Variable Documentation

idCommon* common = NULL

Definition at line 49 of file maya_main.cpp.

const char* componentNames[6] = { "Tx", "Ty", "Tz", "Qx", "Qy", "Qz" }

Definition at line 46 of file maya_main.cpp.

idCVarSystem* cvarSystem = NULL

Definition at line 50 of file maya_main.cpp.

idStr errorMessage

Definition at line 37 of file maya_main.cpp.

bool initialized = false

Definition at line 38 of file maya_main.cpp.

idSys* sys = NULL

Definition at line 48 of file maya_main.cpp.

Definition at line 3148 of file maya_main.cpp.

const exporterDLLEntry_t ValidateEntry = &dllEntry

Definition at line 3147 of file maya_main.cpp.

const exporterShutdown_t ValidateShutdown = &Maya_Shutdown

Definition at line 3149 of file maya_main.cpp.