Add rayman2 source files
This commit is contained in:
11
Rayman_X/cpa/Appli/CvrtA3DtoA3i/Inc/IniFile.h
Normal file
11
Rayman_X/cpa/Appli/CvrtA3DtoA3i/Inc/IniFile.h
Normal file
@@ -0,0 +1,11 @@
|
||||
// **********************************************************************************
|
||||
// * "inifile.h" *
|
||||
// * Written by : Carlos Torres *
|
||||
// * Tabulations : 4 char *
|
||||
// **********************************************************************************
|
||||
|
||||
void fn_v_IniFileInit(char * szFamilyName);
|
||||
|
||||
|
||||
// **********************************************************************************
|
||||
|
39
Rayman_X/cpa/Appli/CvrtA3DtoA3i/Inc/Tbl_Format.h
Normal file
39
Rayman_X/cpa/Appli/CvrtA3DtoA3i/Inc/Tbl_Format.h
Normal file
@@ -0,0 +1,39 @@
|
||||
// **********************************************************************************
|
||||
// * "Tbl_Format.h" *
|
||||
// * Written by : Carlos Torres *
|
||||
// * Tabulations : 4 char *
|
||||
// **********************************************************************************
|
||||
|
||||
#ifndef TBL_FORMAT_H
|
||||
#define TBL_FORMAT_H
|
||||
|
||||
/////////////////////////////////////////////////////////// Key word use in TBL Files
|
||||
|
||||
// header
|
||||
#define TBL_HEADER_SECTION "TBL_HEADER"
|
||||
#define TBL_VERSION "VersionNumber"
|
||||
#define TBL_MAXINDEX "MaximumIndex"
|
||||
|
||||
// physic objects
|
||||
#define TBL_PHYSIC_SECTION "TBL"
|
||||
#define TBL_PHYSIC "PHY"
|
||||
#define TBL_ZOOM "CustomZoom"
|
||||
|
||||
// Event
|
||||
#define TBL_EVENT_SECTION "EVT"
|
||||
#define TBL_OBJECTTYPE "ObjectType"
|
||||
#define TBL_SOUNDEVT "SoundEvent"
|
||||
#define TBL_GENERICEVT "GenericEvent"
|
||||
#define TBL_GENERATEEVT "GenerateEvent"
|
||||
#define TBL_MECHANICEVT "MechanicEvent"
|
||||
#define TBL_FIRSTCALL "FirstCall"
|
||||
#define TBL_PERIOD "Period"
|
||||
#define TBL_PRIORITY "Priority"
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////// Constant
|
||||
// TBL Version
|
||||
#define C_TblVersion 1
|
||||
#define C_TBL_MAXOBJECT 0x7FFF
|
||||
|
||||
|
||||
#endif
|
29
Rayman_X/cpa/Appli/CvrtA3DtoA3i/Inc/a3x_intb.h
Normal file
29
Rayman_X/cpa/Appli/CvrtA3DtoA3i/Inc/a3x_intb.h
Normal file
@@ -0,0 +1,29 @@
|
||||
// **********************************************************************************
|
||||
// * "a3i_intb.h" *
|
||||
// * Written by : S<>bastien Rubens *
|
||||
// * Tabulations : 4 char *
|
||||
// **********************************************************************************
|
||||
#ifndef A3X_INTB_H
|
||||
#define A3X_INTB_H
|
||||
|
||||
#ifndef A3I_INTB_C
|
||||
// **********************************************************************************
|
||||
// Interpolations computations
|
||||
|
||||
extern void fn_v_BinInterpolBetweenKeys( tdstBinFrame *_p_stKey1,
|
||||
tdstBinFrame *_p_stKey2,
|
||||
tdxMatrix33 _a3a3_xMtxOri,
|
||||
tdxMatrix33 _a3a3_xMtxSca,
|
||||
tdxVector3 _a3_xPosition,
|
||||
register SEB_xReal _xT,
|
||||
tdxVector3 _a3_xPivotPosition,
|
||||
tdxQuater4 _a4_xQuatOri,
|
||||
tdxQuater4 _a4_xQuatSca,
|
||||
tdxVector3 _a3_xVecSca );
|
||||
|
||||
|
||||
|
||||
// **********************************************************************************
|
||||
#endif
|
||||
|
||||
#endif
|
16
Rayman_X/cpa/Appli/CvrtA3DtoA3i/Inc/l_Sta_v6.h
Normal file
16
Rayman_X/cpa/Appli/CvrtA3DtoA3i/Inc/l_Sta_v6.h
Normal file
@@ -0,0 +1,16 @@
|
||||
// **********************************************************************************
|
||||
// * "l_Sta_v6.h" *
|
||||
// * Written by : Carlos Torres *
|
||||
// * Tabulations : 4 char *
|
||||
// **********************************************************************************
|
||||
#ifndef L_STA_V6_H
|
||||
#define L_STA_V6_H
|
||||
|
||||
|
||||
// **********************************************************************************
|
||||
// fonctions definitions
|
||||
void fn_v_InitSTAV6i( void );
|
||||
|
||||
// **********************************************************************************
|
||||
|
||||
#endif
|
33
Rayman_X/cpa/Appli/CvrtA3DtoA3i/Inc/l_Tbl_v6.h
Normal file
33
Rayman_X/cpa/Appli/CvrtA3DtoA3i/Inc/l_Tbl_v6.h
Normal file
@@ -0,0 +1,33 @@
|
||||
// **********************************************************************************
|
||||
// * "l_Tbl_v6.h" *
|
||||
// * Written by : Carlos Torres *
|
||||
// * Tabulations : 4 char *
|
||||
// **********************************************************************************
|
||||
#ifndef L_TBL_V6_H
|
||||
#define L_TBL_V6_H
|
||||
|
||||
|
||||
#define OBJECT_IN_TBL 0x01
|
||||
#define OBJECT_IN_ANIM 0x02
|
||||
|
||||
// **********************************************************************************
|
||||
typedef struct tdstTBL_
|
||||
{
|
||||
unsigned char ucTypeOfEvent;
|
||||
unsigned char ucFlag;
|
||||
unsigned short swNewObjectNumber;
|
||||
unsigned char ucIsObject;
|
||||
} tdstTBL;
|
||||
|
||||
extern tdstTBL ax_tdstTabTBL[];
|
||||
extern unsigned long g_ulTblMaxIndex;
|
||||
|
||||
// **********************************************************************************
|
||||
// fonctions definitions
|
||||
void fn_v_InitTBLV6i( void );
|
||||
void fn_vCompactTBL(char * szTblFile);
|
||||
void fn_vGenerateNewObjectNumber(int bCompact);
|
||||
|
||||
// **********************************************************************************
|
||||
|
||||
#endif
|
21
Rayman_X/cpa/Appli/CvrtA3DtoA3i/Inc/l_a3d_v6.h
Normal file
21
Rayman_X/cpa/Appli/CvrtA3DtoA3i/Inc/l_a3d_v6.h
Normal file
@@ -0,0 +1,21 @@
|
||||
// **********************************************************************************
|
||||
// * "l_a3d_v6.h" *
|
||||
// * Written by : S<>bastien Rubens *
|
||||
// * Tabulations : 4 char *
|
||||
// **********************************************************************************
|
||||
#ifndef L_A3D_V6_H
|
||||
#define L_A3D_V6_H
|
||||
|
||||
|
||||
|
||||
#ifndef L_A3D_V6_C
|
||||
// **********************************************************************************
|
||||
// Extern fonctions definitions
|
||||
extern void fn_v_InitA3dV6i( void );
|
||||
|
||||
|
||||
|
||||
// **********************************************************************************
|
||||
#endif
|
||||
|
||||
#endif
|
25
Rayman_X/cpa/Appli/CvrtA3DtoA3i/Inc/l_chl_v6.h
Normal file
25
Rayman_X/cpa/Appli/CvrtA3DtoA3i/Inc/l_chl_v6.h
Normal file
@@ -0,0 +1,25 @@
|
||||
// **********************************************************************************
|
||||
// * "l_chl_v6.h" *
|
||||
// * Written by : S<>bastien Rubens *
|
||||
// * Tabulations : 4 char *
|
||||
// **********************************************************************************
|
||||
#ifndef L_CHL_V6_H
|
||||
#define L_CHL_V6_H
|
||||
|
||||
|
||||
// **********************************************************************************
|
||||
extern signed long slMaxInChannel; // Max in channel name le to set ChannelNumber value !!!
|
||||
|
||||
|
||||
|
||||
#ifndef L_CHL_V6_C
|
||||
// **********************************************************************************
|
||||
// Extern fonctions definitions
|
||||
extern void fn_v_InitCHLV6i( void );
|
||||
|
||||
|
||||
|
||||
// **********************************************************************************
|
||||
#endif
|
||||
|
||||
#endif
|
180
Rayman_X/cpa/Appli/CvrtA3DtoA3i/Inc/l_global_v6.h
Normal file
180
Rayman_X/cpa/Appli/CvrtA3DtoA3i/Inc/l_global_v6.h
Normal file
@@ -0,0 +1,180 @@
|
||||
// **********************************************************************************
|
||||
// * "l_global_v6.h" *
|
||||
// * Written by : S<>bastien Rubens *
|
||||
// * Tabulations : 4 char *
|
||||
// **********************************************************************************
|
||||
#ifndef L_GLOBAL_V6_H
|
||||
#define L_GLOBAL_V6_H
|
||||
|
||||
#include "a3x_glob.h"
|
||||
|
||||
// **********************************************************************************
|
||||
// Enumerates values
|
||||
enum
|
||||
{ eNoKey,
|
||||
eSimpleKey,
|
||||
eDoubleKey
|
||||
};
|
||||
|
||||
enum
|
||||
{ eStackBinStrings,
|
||||
eStackBinVertexes,
|
||||
eStackBinQuaternions,
|
||||
eStackBinA3dGENERAL,
|
||||
eStackBinChannels,
|
||||
eStackBinFrames,
|
||||
eStackBinOnlyFrames,
|
||||
eStackBinHierarchies,
|
||||
eStackBinChannelNames,
|
||||
|
||||
eStackSavedVertexes,
|
||||
eStackSavedQuaternions,
|
||||
eStackSavedNTTO,
|
||||
|
||||
eStackFileA3dAnimationGENERAL,
|
||||
eStackFileVertexes,
|
||||
eStackFileQuaternions,
|
||||
eStackFileHierarchy,
|
||||
eStackFileNTTO,
|
||||
eStackFileOnlyFrame,
|
||||
eStackFileKeyFrame,
|
||||
eStackFileFrame,
|
||||
eStackFileChannel,
|
||||
eStackFileEvent,
|
||||
eStackBinMorphInformation,
|
||||
|
||||
eStackBinSndEventIdList,
|
||||
eStackBinEvent,
|
||||
|
||||
eStackBinNbMax
|
||||
};
|
||||
|
||||
|
||||
|
||||
// **********************************************************************************
|
||||
// Constant definitions
|
||||
#define MaxInFileA3dAnimationGENERALTab 2000
|
||||
#define MaxInFileVertexesTab 30000
|
||||
#define MaxInFileQuaternionsTab 30000
|
||||
#define MaxInFileHierarchyTab 1000
|
||||
#define MaxInFileNTTOTab 10000
|
||||
#define MaxInFileEventTab 2000
|
||||
#define MaxInFileOnlyFrameTab 2000
|
||||
#define MaxInFileChannelTab 1000
|
||||
#define MaxInFileFrameTab 20000
|
||||
#define MaxInFileKeyFrameTab 15000
|
||||
#define MaxInSndEventIdTab 10000
|
||||
#define MaxInEventTab 8000
|
||||
#define MaxInFileEventTab 2000
|
||||
#define MaxInFileMorphTab 20000
|
||||
|
||||
#define NombreDanimationsParDirectory 1000
|
||||
|
||||
// **********************************************************************************
|
||||
// Macros definitions
|
||||
|
||||
#define D_BINSCR_LogOld 0
|
||||
#define D_BINSCR_LogNew 1
|
||||
|
||||
#define M_GetStackAlloc( NumStack ) (tdstStacks[(NumStack)].slPosAlloc)
|
||||
#define M_GetStackPos( NumStack ) (tdstStacks[(NumStack)].slStackPos)
|
||||
|
||||
#define ReadUChar( Num ) ( (unsigned char) atoi(_ap_SzParam[(Num)]) )
|
||||
#define ReadSChar( Num ) ( (signed char) atoi(_ap_SzParam[(Num)]) )
|
||||
#define ReadUShort( Num ) ( (unsigned short) atoi(_ap_SzParam[(Num)]) )
|
||||
#define ReadSShort( Num ) ( (signed short) atoi(_ap_SzParam[(Num)]) )
|
||||
#define ReadULong( Num ) ( (unsigned long) atol(_ap_SzParam[(Num)]) )
|
||||
#define ReadSLong( Num ) ( (signed long) atol(_ap_SzParam[(Num)]) )
|
||||
#define ReadFloat( Num ) ( (float) atof(_ap_SzParam[(Num)]) )
|
||||
#define ReadDouble( Num ) ( (double) atof(_ap_SzParam[(Num)]) )
|
||||
#define ReadSebReal( Num ) ( (SEB_xReal) atof(_ap_SzParam[(Num)]) )
|
||||
|
||||
|
||||
// **********************************************************************************
|
||||
// Types definitions
|
||||
|
||||
typedef struct tdstBinStackInfos_
|
||||
{
|
||||
signed long slPosAlloc;
|
||||
signed long slStackPos;
|
||||
signed long slAllocNeeded;
|
||||
signed long slMaxPos;
|
||||
} tdstBinStackInfos;
|
||||
|
||||
|
||||
|
||||
typedef struct tdstSndEventId_
|
||||
{
|
||||
char sName[200];
|
||||
unsigned long ulVal1;
|
||||
unsigned long ulVal2;
|
||||
} tdstSndEventId;
|
||||
|
||||
|
||||
|
||||
// **********************************************************************************
|
||||
// Extern datas definitions
|
||||
extern tdstBinStackInfos tdstStacks [];
|
||||
extern tdFileName ax_xStrings [];
|
||||
extern tdxVector3 axa3_xVertexes [];
|
||||
extern tdxQuater4 axa4_xBinQuaternions [];
|
||||
extern tdstBinA3dAnimationGENERAL ax_tdstA3dGENERAL [];
|
||||
extern tdstBinChannel ax_tdstChannels [];
|
||||
extern tdstBinFrame ax_tdstFrames [];
|
||||
extern tdstBinOnlyFrame ax_tdstOnlyFrames [];
|
||||
extern tdstBinHierarchy ax_tdstHierarchies [];
|
||||
extern tdFileName ax_xChannelNames [];
|
||||
extern tdstSndEventId ax_tdstSndEventId [];
|
||||
extern tdstBinEvent ax_tdstEvents [];
|
||||
extern tdstBinMorphData ax_tdstBinMorphInfos [];
|
||||
|
||||
extern tdxVector3 ax_tdxSavedVertexes [];
|
||||
extern tdxQuater4 ax_tdxSavedQuaternions [];
|
||||
extern tdstNTTO ax_tdstSavedNTTO [];
|
||||
|
||||
extern tdstFileA3dAnimationGENERAL ax_tdstFileA3dGENERAL [];
|
||||
extern tdxULongVector3 ax_tdxFileVertexes [];
|
||||
extern tdxSShortQuater4 ax_tdxFileQuaternions [];
|
||||
extern tdstFileHierarchy ax_tdstFileHierarchy [];
|
||||
extern tdstNTTO ax_tdstFileNTTO [];
|
||||
extern tdstFileOnlyFrame ax_tdstFileOnlyFrame [];
|
||||
extern tdstFileKeyFrame ax_tdstFileKeyFrame [];
|
||||
extern tdstFileFrame ax_tdstFileFrame [];
|
||||
extern tdstFileChannel ax_tdstFileChannel [];
|
||||
extern tdstFileEvent ax_tdstFileEvent [];
|
||||
extern tdstFileMorphData ax_tdstFileMorphInfos []; //AR980305
|
||||
|
||||
extern unsigned short uwOkAnimationFile; // Flag
|
||||
|
||||
extern tdxVector3 a3_xVector0;
|
||||
extern tdxVector3 a3_xVector1;
|
||||
extern tdxQuater4 a4_xQuater0;
|
||||
extern FILE *ErrorFile, *WarningFile, *SizeOut, *EventFile;
|
||||
|
||||
|
||||
|
||||
#ifndef L_GLOBAL_V6_C
|
||||
// **********************************************************************************
|
||||
// Extern fonctions definitions
|
||||
extern void fn_v_AllocateOnStack( unsigned short uwNumStack,
|
||||
signed long slWantedSize );
|
||||
extern void fn_v_DeAllocateOnStack( unsigned short uwNumStack,
|
||||
signed long slSize );
|
||||
extern void fn_v_ResetStacks( void );
|
||||
|
||||
extern void fn_vCheckStacks( void );
|
||||
|
||||
extern void fn_v_LogSectionBegin( int _bFlagNew,
|
||||
char *_szType,
|
||||
char *_szString );
|
||||
extern void fn_v_LogSectionEnd( void );
|
||||
|
||||
extern void fn_v_InitMemV6i( void );
|
||||
extern void fn_v_KillMem( void );
|
||||
|
||||
|
||||
|
||||
// **********************************************************************************
|
||||
#endif
|
||||
|
||||
#endif
|
29
Rayman_X/cpa/Appli/CvrtA3DtoA3i/Inc/l_optim_v6.h
Normal file
29
Rayman_X/cpa/Appli/CvrtA3DtoA3i/Inc/l_optim_v6.h
Normal file
@@ -0,0 +1,29 @@
|
||||
// **********************************************************************************
|
||||
// * "l_optim_v6.h" *
|
||||
// * Written by : S<>bastien Rubens *
|
||||
// * Tabulations : 4 char *
|
||||
// **********************************************************************************
|
||||
#ifndef L_OPTIM_V6_H
|
||||
#define L_OPTIM_V6_H
|
||||
|
||||
|
||||
#ifndef L_OPTIM_V6_C
|
||||
// **********************************************************************************
|
||||
// Extern fonctions definitions
|
||||
extern void TagadaPouetPouet ( unsigned short uwNbAnims );
|
||||
extern void fn_v_VerifyAnimationV6i ( unsigned short uwNbAnims );
|
||||
extern void fn_v_OptimiseAnimationV6i ( unsigned short uwNbAnims );
|
||||
extern void fn_v_OptimiseAnimation2V6i ( unsigned short uwNbAnims );
|
||||
extern void fn_v_SaveAnimationV6i ( unsigned short uwNbFirstAnim,unsigned short uwNbAnims,char * p_szSaveDir);
|
||||
extern void fn_v_StartA3dV6i ( void );
|
||||
extern void fn_v_EndA3dV6i ( void );
|
||||
extern unsigned short fn_uw_GetDirV6i ( char * LongActorName,unsigned char bTreatAll);
|
||||
extern void fn_v_InitSaveAnimationV6i ( void );
|
||||
extern void fn_v_EndSaveAnimationV6i ( void );
|
||||
|
||||
|
||||
|
||||
// **********************************************************************************
|
||||
#endif
|
||||
|
||||
#endif
|
55
Rayman_X/cpa/Appli/CvrtA3DtoA3i/Inc/makeanim.h
Normal file
55
Rayman_X/cpa/Appli/CvrtA3DtoA3i/Inc/makeanim.h
Normal file
@@ -0,0 +1,55 @@
|
||||
// **********************************************************************************
|
||||
// * "scr2bin.h" *
|
||||
// * Written by : S<>bastien Rubens *
|
||||
// * Tabulations : 4 char *
|
||||
// **********************************************************************************
|
||||
#ifndef MAKEANIM_H
|
||||
#define MAKEANIM_H
|
||||
|
||||
#include <conio.h>
|
||||
#include "l_global_v6.h"
|
||||
|
||||
// ********************************************************************************** Constant
|
||||
|
||||
#define MAKEANIM_OPTIONS_FILE "MakeAnim.ini"
|
||||
|
||||
#define WaitKeyStroke() if (!bBatch) getch()
|
||||
|
||||
// ********************************************************************************** struct tdstAnimInfo
|
||||
|
||||
// ANIM INFO Struct
|
||||
typedef struct tdstAnimInfo_ {
|
||||
tdFileName szShortFileName;
|
||||
SEB_xReal xPrecision;
|
||||
int iValid;
|
||||
} tdstAnimInfo;
|
||||
|
||||
// Macro Access
|
||||
#define szAnimName(tab) (tab)->szShortFileName
|
||||
#define xPrecision(tab) (tab)->xPrecision
|
||||
#define bValid(tab) (tab)->iValid
|
||||
|
||||
// ********************************************************************************** Varaibles gloables
|
||||
extern char szFamilyName[];
|
||||
|
||||
extern unsigned short uwAnalysedAnim;
|
||||
|
||||
|
||||
// Table of anim info
|
||||
extern tdstAnimInfo stAnims[NombreDanimationsParDirectory];
|
||||
extern unsigned short g_uwTotalNumOfAnim;
|
||||
|
||||
extern char LongFileName[];
|
||||
extern char AnimationName[];
|
||||
|
||||
// default epsilon precision
|
||||
extern SEB_xReal xDefaultEps;
|
||||
|
||||
// compress TBL fla
|
||||
extern int bCompactTbl;
|
||||
|
||||
// in batch mode no wait for key stroke
|
||||
extern unsigned char bBatch;
|
||||
|
||||
// **********************************************************************************
|
||||
#endif
|
Reference in New Issue
Block a user