Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
util.h File Reference
#include "always.h"
#include <Max.h>
#include "skin.h"
#include "nodelist.h"

Go to the source code of this file.

Macros

#define SAFE_DELETE(pobject)
 
#define SAFE_DELETE_ARRAY(pobject)
 

Functions

Matrix3 Cleanup_Orthogonal_Matrix (Matrix3 &mat)
 
void Set_W3D_Name (char *set_name, const char *src)
 
void Split_Node_Name (const char *name, char *set_base, char *set_exten, int *set_exten_index)
 
bool Append_Lod_Character (char *meshname, int lod_level, INodeListClass *origin_list)
 
void Create_Full_Path (char *full_path, const char *cwd, const char *rel_path)
 
void Create_Relative_Path (char *rel_path, const char *cwd, const char *full_path)
 
bool Is_Full_Path (char *path)
 
bool Is_Max_Tri_Mesh (INode *node)
 
bool Is_Origin (INode *node)
 
bool Is_Base_Origin (INode *node)
 
INode * Find_Origin (INode *node)
 
bool Is_Damage_Root (INode *node)
 
int Get_Lod_Level (INode *node)
 
int Get_Damage_State (INode *node)
 
INode * Find_Named_Node (char *nodename, INode *root)
 

Macro Definition Documentation

◆ SAFE_DELETE

#define SAFE_DELETE ( pobject)
Value:
if (pobject) { \
delete pobject; \
pobject = NULL; \
} \
#define NULL
Definition BaseType.h:92

Definition at line 104 of file util.h.

◆ SAFE_DELETE_ARRAY

#define SAFE_DELETE_ARRAY ( pobject)
Value:
if (pobject) { \
delete [] pobject; \
pobject = NULL; \
} \

Definition at line 110 of file util.h.

Function Documentation

◆ Append_Lod_Character()

bool Append_Lod_Character ( char * meshname,
int lod_level,
INodeListClass * origin_list )

Definition at line 188 of file util.cpp.

◆ Cleanup_Orthogonal_Matrix()

Matrix3 Cleanup_Orthogonal_Matrix ( Matrix3 & mat)

Definition at line 79 of file util.cpp.

◆ Create_Full_Path()

void Create_Full_Path ( char * full_path,
const char * cwd,
const char * rel_path )

Definition at line 251 of file util.cpp.

◆ Create_Relative_Path()

void Create_Relative_Path ( char * rel_path,
const char * cwd,
const char * full_path )

Definition at line 285 of file util.cpp.

◆ Find_Named_Node()

INode * Find_Named_Node ( char * nodename,
INode * root )

Definition at line 584 of file util.cpp.

◆ Find_Origin()

INode * Find_Origin ( INode * node)

◆ Get_Damage_State()

int Get_Damage_State ( INode * node)

Definition at line 574 of file util.cpp.

◆ Get_Lod_Level()

int Get_Lod_Level ( INode * node)

Definition at line 563 of file util.cpp.

◆ Is_Base_Origin()

bool Is_Base_Origin ( INode * node)

Definition at line 535 of file util.cpp.

◆ Is_Damage_Root()

bool Is_Damage_Root ( INode * node)

Definition at line 453 of file util.cpp.

◆ Is_Full_Path()

bool Is_Full_Path ( char * path)

Definition at line 410 of file util.cpp.

◆ Is_Max_Tri_Mesh()

bool Is_Max_Tri_Mesh ( INode * node)

Definition at line 441 of file util.cpp.

◆ Is_Origin()

bool Is_Origin ( INode * node)

Definition at line 495 of file util.cpp.

◆ Set_W3D_Name()

void Set_W3D_Name ( char * set_name,
const char * src )

Definition at line 112 of file util.cpp.

◆ Split_Node_Name()

void Split_Node_Name ( const char * name,
char * set_base,
char * set_exten,
int * set_exten_index )

Definition at line 142 of file util.cpp.