Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
util.cpp File Reference
#include "util.h"
#include "w3dutil.h"
#include "skin.h"
#include "skindata.h"
#include "modstack.h"

Go to the source code of this file.

Macros

#define MAX_NODE_NAME_LEN   256
 

Enumerations

enum  PathCharType { NULL_CHAR , SLASH_CHAR , PLAIN_CHAR }
 

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 *curr, const char *rel_path)
 
void Create_Relative_Path (char *rel_path, const char *curr, const char *full_path)
 
bool Is_Full_Path (char *path)
 
bool Is_Max_Tri_Mesh (INode *node)
 
bool Is_Damage_Root (INode *node)
 
bool Is_Origin (INode *node)
 
bool Is_Base_Origin (INode *node)
 
int Get_Lod_Level (INode *node)
 
int Get_Damage_State (INode *node)
 
INode * Find_Named_Node (char *nodename, INode *root)
 

Variables

const float EPSILON = 0.00001f
 

Macro Definition Documentation

◆ MAX_NODE_NAME_LEN

#define MAX_NODE_NAME_LEN   256

Definition at line 51 of file util.cpp.

Enumeration Type Documentation

◆ PathCharType

Enumerator
NULL_CHAR 
SLASH_CHAR 
PLAIN_CHAR 

Definition at line 279 of file util.cpp.

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 * curr,
const char * rel_path )

Definition at line 251 of file util.cpp.

◆ Create_Relative_Path()

void Create_Relative_Path ( char * rel_path,
const char * curr,
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.

◆ 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.

Variable Documentation

◆ EPSILON

const float EPSILON = 0.00001f

Definition at line 53 of file util.cpp.