00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef __HMD2ES_H__
00011 #define __HMD2ES_H__
00012 #ifdef __cplusplus
00013 extern "C" {
00014 #endif
00015
00016 #ifndef FALSE
00017 #define FALSE 0
00018 #endif
00019 #ifndef TRUE
00020 #define TRUE 1
00021 #endif
00022
00023 extern void print_error(char *errmsg);
00024
00025
00026 extern void seek_None(HMD *hmd);
00027 extern void seek_Misc(HMD *hmd);
00028 extern void seek_PrimHdrSect(HMD *hmd);
00029 extern void seek_PrimHdr(HMD *hmd);
00030 extern void seek_PrimSet(HMD *hmd);
00031 extern void seek_CoordSect(HMD *hmd);
00032 extern void seek_Coord(HMD *hmd);
00033 extern void seek_PolyPrimHdr(HMD *hmd);
00034 extern void seek_PolyPrimSet(HMD *hmd);
00035 extern void seek_Poly(HMD *hmd);
00036 extern void seek_Vert(HMD *hmd);
00037 extern void seek_Norm(HMD *hmd);
00038 extern void seek_ImagePrimHdr(HMD *hmd);
00039 extern void seek_ImagePrimSet(HMD *hmd);
00040 extern void seek_ImageData(HMD *hmd);
00041 extern void seek_ClutData(HMD *hmd);
00042
00043 extern void seek_Prim(HMD *hmd, PrimHeader *hdr, PrimInfo *info);
00044
00045
00046 extern void get_matrix0(u_long num);
00047 extern void get_matrix(float *mat, u_long super, long pos);
00048 extern void get_vertex(float *vert, int cnt);
00049 extern void get_normal(float *norm, int cnt);
00050 extern void get_polygroup0(u_long num);
00051 extern void get_npolygroup(u_long ptr);
00052 extern void get_polygroup();
00053 extern void get_polytype0(u_long ntype);
00054 extern void get_polytype(PrimInfo *info);
00055 extern void get_polyindex0();
00056 extern void get_polyindex(u_short type, long val);
00057 extern void get_geometry(void);
00058 extern void free_geometry(void);
00059
00060 extern void print_header(void);
00061 extern void print_shape(void);
00062 extern void print_hrc(void);
00063
00064
00065 extern void seek_SharedPoly(HMD *hmd);
00066 extern void seek_SharedVert(HMD *hmd);
00067 extern void seek_CalcedVert(HMD *hmd);
00068 extern void seek_SharedNorm(HMD *hmd);
00069 extern void seek_CalcedNorm(HMD *hmd);
00070 extern void seek_SharedPrimHdr(HMD *hmd);
00071 extern void seek_SharedPrimSet(HMD *hmd);
00072 extern void seek_SharedPolyPrimSet(HMD *hmd);
00073
00074
00075 extern void seek_InterpFuncSect(HMD *hmd);
00076 extern void seek_CtrlSect(HMD *hmd);
00077 extern void seek_ParamSect(HMD *hmd);
00078 extern void seek_AnimPrimHdr(HMD *hmd);
00079 extern void seek_AnimPrimSet(HMD *hmd);
00080
00081
00082 extern void seek_GroundPoly(HMD *hmd);
00083 extern void seek_GroundGrid(HMD *hmd);
00084 extern void seek_TexGroundGrid(HMD *hmd);
00085 extern void seek_GroundVert(HMD *hmd);
00086 extern void seek_GroundNorm(HMD *hmd);
00087 extern void seek_GroundUV(HMD *hmd);
00088 extern void seek_GroundPrimHdr(HMD *hmd);
00089 extern void seek_TexGroundPrimHdr(HMD *hmd);
00090 extern void seek_GroundPrimSet(HMD *hmd);
00091 extern void seek_TexGroundPrimSet(HMD *hmd);
00092
00093
00094 extern void seek_MIMePrimHdr(HMD *hmd);
00095 extern void seek_MIMePrimSet(HMD *hmd);
00096 extern void seek_MIMeDiffSect(HMD *hmd);
00097 extern void seek_MIMePr(HMD *hmd);
00098 extern void seek_MIMePr_ptr(HMD *hmd, DWORD dw);
00099 extern void seek_MIMe_num(HMD *hmd, DWORD dw);
00100 extern void seek_MIMeID(HMD *hmd, DWORD dw, long pos);
00101
00102
00103 extern void seek_JntMIMePrimHdr(HMD *hmd);
00104 extern void seek_JntMIMePrimSet(HMD *hmd);
00105 extern void seek_RstJntMIMePrimHdr(HMD *hmd);
00106 extern void seek_RstJntMIMePrimSet(HMD *hmd);
00107
00108
00109 extern void seek_AxesMIMeDiffData(HMD *hmd);
00110 extern void seek_RstAxesMIMeDiffData(HMD *hmd);
00111 extern void seek_AxesMIMeDiff(HMD *hmd);
00112
00113
00114 extern void seek_RPYMIMeDiffData(HMD *hmd);
00115 extern void seek_RstRPYMIMeDiffData(HMD *hmd);
00116 extern void seek_RPYMIMeDiff(HMD *hmd);
00117
00118
00119 extern void seek_VNMIMeOrgsVNSect(HMD *hmd);
00120 extern void seek_VNMIMePrimHdr(HMD *hmd);
00121 extern void seek_VNMIMePrimSet(HMD *hmd);
00122 extern void seek_RstVNMIMePrimHdr(HMD *hmd);
00123 extern void seek_RstVNMIMePrimSet(HMD *hmd);
00124
00125
00126 extern void seek_NormMIMeDiffData(HMD *hmd);
00127 extern void seek_NormMIMeDiff(HMD *hmd);
00128 extern void seek_RstNormMIMeChanged(HMD *hmd);
00129 extern void seek_RstNormMIMeDiffData(HMD *hmd);
00130 extern void seek_RstNormMIMeDiff(HMD *hmd);
00131
00132
00133 extern void seek_VertMIMeDiffData(HMD *hmd);
00134 extern void seek_VertMIMeDiff(HMD *hmd);
00135 extern void seek_RstVertMIMeChanged(HMD *hmd);
00136 extern void seek_RstVertMIMeDiffData(HMD *hmd);
00137 extern void seek_RstVertMIMeDiff(HMD *hmd);
00138
00139
00140
00141 #ifdef __cplusplus
00142 }
00143 #endif
00144 #endif