Add rayman2 source files

This commit is contained in:
2024-09-18 02:33:44 +08:00
parent bcc093f8ed
commit fb036c54fd
14339 changed files with 2596224 additions and 0 deletions

View File

@@ -0,0 +1,101 @@
/*=========================================================================
* CSLoad.h : Header file for loading CS
*
* Version 1.0
* Creation date 05/05/97
* Revision date
*
* That file needs to be compatible for all platforms.
*
* (c) Ubi Studios 1997
*=======================================================================*/
#if !defined(__CSLOAD_H__)
#define __CSLOAD_H__
/* For DLL using these function :*/
#include "cpa_expt.h"
/*****************************************************************************************/
/**** Below : macros used to read script. ****/
/*****************************************************************************************/
#define C_GrandChildSection ( 2)
#define C_ChildSection ( 1)
#define C_ThisSection ( 0)
#define C_ParentSection (-1)
#define C_GrandParentSection (-2)
#define C_GrandChildContext ( 2)
#define C_ChildContext ( 1)
#define C_ThisContext ( 0)
#define C_ParentContext (-1)
#define C_GrandParentContext (-2)
#define M_IsTitle (_eAction==SCR_EA_Anl_BeginSection)
#define M_IsEnd (_eAction==SCR_EA_Anl_EndSection)
#define M_IsBegSubSection (_eAction==SCR_EA_Anl_BeginSubSection)
#define M_IsEndSubSection (_eAction==SCR_EA_Anl_EndSubSection)
#define M_IsEntry (_eAction==SCR_EA_Anl_Entry)
#define M_ActionIs(szActionAsked) (!strcmpi(_p_szName,szActionAsked))
/**** CS scripts ****/
#define C_Section_CSHeader "ZOO_HEADER"
#define C_Entry_FileVersion "VersionNumber"
#define C_Section_AllCollideSets "AllCollideSets"
#define C_Section_CSGeneral "CS"
#define C_Entry_ZDR "ZDR"
#define C_Entry_ZDD "ZDD"
#define C_Entry_ZDE "ZDE"
/*
* Animations files script call-backs
*/
#if !defined(U64)
extern CPA_EXPORT SCR_tde_Anl_ReturnValue CS_fn_eScriptCallBackHeader(SCR_tdst_File_Description *_p_stFile,char *_p_szName,char *_ap_szParams[],SCR_tde_Anl_Action _eAction);
extern CPA_EXPORT SCR_tde_Anl_ReturnValue CS_fn_eScriptCallBackGeneral(SCR_tdst_File_Description *_p_stFile,char *_p_szName,char *_ap_szParams[],SCR_tde_Anl_Action _eAction);
extern CPA_EXPORT SCR_tde_Anl_ReturnValue CS_fn_eScriptCallBackBinHeader(SCR_tdst_File_Description *_p_stFile,char *_p_szName,char *_ap_szParams[],SCR_tde_Anl_Action _eAction);
extern CPA_EXPORT SCR_tde_Anl_ReturnValue CS_fn_eScriptCallBackBinGeneral(SCR_tdst_File_Description *_p_stFile,char *_p_szName,char *_ap_szParams[],SCR_tde_Anl_Action _eAction);
#endif /* U64 */
/*************************************************/
/********* global for CS Link Table *************/
/*************************************************/
#if !defined(U64)
extern CPA_EXPORT SCR_tdst_Link_Table CS_g_stLinkTable;
#endif /* U64 */
/*************************************************/
/*
* Initialisation and access to link table for CS name storage
*/
#if !defined(U64)
extern CPA_EXPORT SCR_tdst_Link_Table *CS_fn_p_stGetLinkTable(void);
#endif /* U64 */
extern CPA_EXPORT void CS_fn_vInitLinkTable(void);
extern CPA_EXPORT void CS_fn_vCloseLinkTable(void);
extern CPA_EXPORT void CS_fn_vRegisterAllScriptSections(void);
/*
* For the binarisation
*/
extern CPA_EXPORT PCS_tdxHandleToPhysicalCollSet CS_fn_xLoadCollideSet(char* _szSectionName);
/*
extern CPA_EXPORT void CS_fn_vPrepareSaveBinaryBloc();
extern CPA_EXPORT unsigned long CS_fn_ulWriteBinaryBloc(unsigned long _ulStructAddress, char* _p_cDestBuffer);
extern CPA_EXPORT void CS_fn_vWriteAllCSBinaryBlocs(char* _szBinaryFileName);
extern CPA_EXPORT unsigned long CS_fn_ulReadBinaryBloc(char* _p_cLoadedBuffer,unsigned long _ulLoadedBufferSize);
extern CPA_EXPORT void CS_fn_vReadAllCSBinaryBlocs(char* _szBinaryFileName);
extern CPA_EXPORT void CS_fn_vReadAllCSBinaryBlocs2(char* _szBinaryFileName);
extern CPA_EXPORT void CS_fn_vResolveBinaryBloc(unsigned long _ulAddress);
*/
/* !__CSLOAD_H__ */
#endif

View File

@@ -0,0 +1,24 @@
/* (c) Ubi R&D 1997*/
/* See Sebastien DAVID for any comment or question*/
#ifndef __POFUNCT_H__
#define __POFUNCT_H__
#ifdef __cplusplus
extern "C" {
#endif
/* For DLL using these function :*/
#include "../cpa_expt.h"
/****************************************************************************/
/* ACCESSORS */
/****************************************************************************/
#ifdef __cplusplus
}/* extern "C" */
#endif
/* __POFUNCT_H__*/
#endif

View File

@@ -0,0 +1,12 @@
/* (c) Ubi R&D 1997*/
/* See Sebastien DAVID for any comment or question*/
#ifndef __POHANDL_H__
#define __POHANDL_H__
/* Use this handle*/
typedef struct PO_tdstPhysicalObject_ * PO_tdxHandleToPhysicalObject ;
/* __POHANDL_H__*/
#endif

View File

@@ -0,0 +1,105 @@
/*=========================================================================
* POLoad.h : Header file for loading PO
*
* Version 1.0
* Creation date 05/05/97
* Revision date
*
* That file needs to be compatible for all platforms.
*
* (c) Ubi Studios 1997
*=======================================================================*/
#if !defined(__POLOAD_H__)
#define __POLOAD_H__
/* For DLL using these function :*/
#include "../cpa_expt.h"
/*****************************************************************************************/
/**** Below : macros used to read script. ****/
/*****************************************************************************************/
#define C_GrandChildSection ( 2)
#define C_ChildSection ( 1)
#define C_ThisSection ( 0)
#define C_ParentSection (-1)
#define C_GrandParentSection (-2)
#define C_GrandChildContext ( 2)
#define C_ChildContext ( 1)
#define C_ThisContext ( 0)
#define C_ParentContext (-1)
#define C_GrandParentContext (-2)
#define M_IsTitle (_eAction==SCR_EA_Anl_BeginSection)
#define M_IsEnd (_eAction==SCR_EA_Anl_EndSection)
#define M_IsBegSubSection (_eAction==SCR_EA_Anl_BeginSubSection)
#define M_IsEndSubSection (_eAction==SCR_EA_Anl_EndSubSection)
#define M_IsEntry (_eAction==SCR_EA_Anl_Entry)
#define M_ActionIs(szActionAsked) (!strcmpi(_p_szName,szActionAsked))
/**** PO scripts ****/
#define C_Section_POHeader "PHY_HEADER"
#define C_Entry_FileVersion "VersionNumber"
#define C_Section_POGeneral "PHY"
#define C_Entry_VS "VS"
#define C_Entry_CS "CS"
#define C_Entry_BV "BV"
/*
* Animations files script call-backs
*/
#if !defined(U64)
extern CPA_EXPORT SCR_tde_Anl_ReturnValue PO_fn_eScriptCallBackHeader(SCR_tdst_File_Description *_p_stFile,char *_p_szName,char *_ap_szParams[],SCR_tde_Anl_Action _eAction);
extern CPA_EXPORT SCR_tde_Anl_ReturnValue PO_fn_eScriptCallBackGeneral(SCR_tdst_File_Description *_p_stFile,char *_p_szName,char *_ap_szParams[],SCR_tde_Anl_Action _eAction);
extern CPA_EXPORT SCR_tde_Anl_ReturnValue PO_fn_eScriptCallBackBinHeader(SCR_tdst_File_Description *_p_stFile,char *_p_szName,char *_ap_szParams[],SCR_tde_Anl_Action _eAction);
extern CPA_EXPORT SCR_tde_Anl_ReturnValue PO_fn_eScriptCallBackBinGeneral(SCR_tdst_File_Description *_p_stFile,char *_p_szName,char *_ap_szParams[],SCR_tde_Anl_Action _eAction);
#endif /* U64 */
/*************************************************/
/********* global for PO Link Table *************/
/*************************************************/
#if !defined(U64)
extern CPA_EXPORT SCR_tdst_Link_Table PO_g_stLinkTable;
#endif /* U64 */
/*************************************************/
/*
* Initialisation and access to link table for PO name storage
*/
#if !defined(U64)
extern CPA_EXPORT SCR_tdst_Link_Table *PO_fn_p_stGetLinkTable(void);
#endif /* U64 */
extern CPA_EXPORT void PO_fn_vInitLinkTable(void);
extern CPA_EXPORT void PO_fn_vCloseLinkTable(void);
extern CPA_EXPORT void PO_fn_vRegisterAllScriptSections(void);
/*
* For the binary save
*/
extern CPA_EXPORT PO_tdxHandleToPhysicalObject CS_fn_xLoadPhysicalObject(char* _szSectionName);
// Shaitan => module list in the level
extern CPA_EXPORT PO_tdxHandleToPhysicalObject CS_fn_xFindPhysicalObject(char* _szSectionName);
// End Shaitan => module list in the level
/*
extern CPA_EXPORT PO_tdxHandleToPhysicalObject CS_fn_xLoadBinPhysicalObject(char* _szSectionName);
extern CPA_EXPORT void PO_fn_vPrepareSaveBinaryBloc();
extern CPA_EXPORT unsigned long PO_fn_ulWriteBinaryBloc(unsigned long _ulStructAddress, char* _p_cDestBuffer);
extern CPA_EXPORT void PO_fn_vWriteAllPOBinaryBlocs(char* _szBinaryFileName);
extern CPA_EXPORT unsigned long PO_fn_ulReadBinaryBloc(char* _p_cLoadedBuffer,unsigned long _ulLoadedBufferSize);
extern CPA_EXPORT void PO_fn_vReadAllPOBinaryBlocs(char* _szBinaryFileName);
extern CPA_EXPORT void PO_fn_vReadAllPOBinaryBlocs2(char* _szBinaryFileName);
extern CPA_EXPORT void PO_fn_vResolveBinaryBloc(unsigned long _ulAddress);
extern CPA_EXPORT void PO_fn_vResolveBinaryBlocPass2(unsigned long _ulAddress);
*/
/* !__POLOAD_H__ */
#endif

View File

@@ -0,0 +1,12 @@
/* (c) Ubi R&D 1997*/
/* See Sebastien DAVID for any comment or question*/
/* For the friend modules only : change functions into macros*/
/*#define PO_fn_hGetVisual PO_M_hGetVisual*/
/*#define PO_fn_vSetVisual PO_M_vSetVisual*/
/* AR990531 Optimize access to geometric object */
#ifdef U64
#define PO_fn_hGetGeometricObject(_hPhysicalObject) (_hPhysicalObject)->_hGeometricObject
#endif

View File

@@ -0,0 +1,75 @@
/* (c) Ubi R&D 1997*/
/* See Sebastien DAVID for any comment or question*/
#ifndef __POPROTO_H__
#define __POPROTO_H__
#ifdef __cplusplus
extern "C" {
#endif
/*#include "PhysiCol.h" /* tmp tant que le module PCS n'existe pas */
/* For DLL using these function :*/
#include "../cpa_expt.h"
extern CPA_EXPORT void PO_fn_vFirstInit(void);
/* ***************************************************************************** */
/* **************** Creation and first init of a PO **************************** */
/* ***************************************************************************** */
extern CPA_EXPORT PO_tdxHandleToPhysicalObject PO_fn_hAllocPhysicalObject(void);
extern CPA_EXPORT void PO_fn_vFreePhysicalObject(PO_tdxHandleToPhysicalObject _hPhysicalObject);
/* ***************************************************************************** */
/* ******************** Access functions to Object in PO *********************** */
/* ***************************************************************************** */
/*
extern CPA_EXPORT void * PO_fn_p_vGetObject(PO_tdxHandleToPhysicalObject _hPhysicalObject);
extern CPA_EXPORT void PO_fn_p_vSetObject(PO_tdxHandleToPhysicalObject _hPhysicalObject
,void * p_vObject);
*/
#ifndef D_THROW_VISUAL_SET
extern CPA_EXPORT GEO_tdxHandleToVisualSet PO_fn_hGetVisualSet(PO_tdxHandleToPhysicalObject _hPhysicalObject);
extern CPA_EXPORT void PO_fn_vSetVisualSet(PO_tdxHandleToPhysicalObject _hPhysicalObject
,GEO_tdxHandleToVisualSet _hNewVisualSet);
#else
#ifndef PO_fn_hGetGeometricObject
extern CPA_EXPORT ACP_tdxHandleOfObject PO_fn_hGetGeometricObject(PO_tdxHandleToPhysicalObject _hPhysicalObject);
#endif /*PO_fn_hGetGeometricObject*/
extern CPA_EXPORT void PO_fn_vSetGeometricObject(PO_tdxHandleToPhysicalObject _hPhysicalObject
,ACP_tdxHandleOfObject _hNewGeometricObject);
#endif /* D_THROW_VISUAL_SET */
/* ***************************************************************************** */
/* **************** Access functions to CollideSet in PO *********************** */
/* ***************************************************************************** */
extern CPA_EXPORT PCS_tdxHandleToPhysicalCollSet PO_fn_hGetCollideSet(PO_tdxHandleToPhysicalObject _hPhysicalObject);
extern CPA_EXPORT void PO_fn_vSetCollideSet(PO_tdxHandleToPhysicalObject _hPhysicalObject
,PCS_tdxHandleToPhysicalCollSet _hNewCollideSet);
/* ***************************************************************************** */
/* **************** Access functions to BoundingVolume in PO ******************* */
/* ***************************************************************************** */
extern CPA_EXPORT GEO_tdxHandleToBoundingSphere PO_fn_hGetBoundingVolume(PO_tdxHandleToPhysicalObject _hPhysicalObject);
extern CPA_EXPORT void PO_fn_vSetBoundingVolume(PO_tdxHandleToPhysicalObject _hPhysicalObject,
GEO_tdxHandleToBoundingSphere _hNewBoundingVolume);
extern CPA_EXPORT void HIE_fn_vComputeOnePoBoundingVolume(PO_tdxHandleToPhysicalObject _hPhysicalObject);
/*extern CPA_EXPORT void GLI_vSendPOToViewport ( GLD_tdstViewportAttributes *p_stVpt , PO_tdxHandleToPhysicalObject h_stPhysicalObject , long lDrawModeMask);*/
/*ANNECY JMD 17/02/98{*/
extern CPA_EXPORT unsigned char PO_ucGetNumberOfRLIFromCharacter (HIE_tdxHandleToSuperObject hSprObj, unsigned char *ucIndex1, unsigned char *ucIndex2, MTH_tdxReal *p_xPercent) ;
/*ANNECY JMD }*/
#ifdef __cplusplus
}/* extern "C" */
#endif
/* __POPROTO_H__*/
#endif

View File

@@ -0,0 +1,34 @@
/* (c) Ubi R&D 1997*/
/* See Sebastien DAVID for any comment or question*/
#ifndef __IPOSTRUC_H__
#define __IPOSTRUC_H__
#ifdef __cplusplus
extern "C" {
#endif
typedef struct PO_tdstPhysicalObject_
{
#ifndef D_THROW_VISUAL_SET
GEO_tdxHandleToVisualSet _hVisualSet;
#else
ACP_tdxHandleOfObject _hGeometricObject;
#endif /* D_THROW_VISUAL_SET */
PCS_tdxHandleToPhysicalCollSet _hCollideSet;
#ifndef U64
GEO_tdxHandleToBoundingSphere _hBoundingVolume;
#endif
} PO_tdstPhysicalObject;
/* Definition of the accessor macros for the friend modules*/
/* Rem: handles are pointers*/
#ifdef __cplusplus
}/* extern "C" */
#endif
/* __IPOSTRUC_H__*/
#endif

View File

@@ -0,0 +1,107 @@
#ifndef D_THROW_VISUAL_SET
/*=========================================================================
* VSLoad.h : Header file for loading VS
*
* Version 1.0
* Creation date 05/05/97
* Revision date
*
* That file needs to be compatible for all platforms.
*
* (c) Ubi Studios 1997
*=======================================================================*/
#if !defined(__VSLOAD_H__)
#define __VSLOAD_H__
/* For DLL using these function :*/
#include "cpa_expt.h"
/*****************************************************************************************/
/**** Below : macros used to read script. ****/
/*****************************************************************************************/
#define C_GrandChildSection ( 2)
#define C_ChildSection ( 1)
#define C_ThisSection ( 0)
#define C_ParentSection (-1)
#define C_GrandParentSection (-2)
#define C_GrandChildContext ( 2)
#define C_ChildContext ( 1)
#define C_ThisContext ( 0)
#define C_ParentContext (-1)
#define C_GrandParentContext (-2)
#define M_IsTitle (_eAction==SCR_EA_Anl_BeginSection)
#define M_IsEnd (_eAction==SCR_EA_Anl_EndSection)
#define M_IsBegSubSection (_eAction==SCR_EA_Anl_BeginSubSection)
#define M_IsEndSubSection (_eAction==SCR_EA_Anl_EndSubSection)
#define M_IsEntry (_eAction==SCR_EA_Anl_Entry)
#define M_ActionIs(szActionAsked) (!strcmpi(_p_szName,szActionAsked))
/**** VS scripts ****/
#define C_Section_VSHeader "VSE_HEADER"
#define C_Entry_FileVersion "VersionNumber"
#define C_Section_VSGeneral "VS"
#define C_SubSection_LOD "LOD"
#define C_Entry_LOD_Threshold "LOD_Threshold"
#define C_Entry_FichierMOD "FichierMOD"
/*ANNECY JMD 17/02/98 {*/
#define C_Entry_FichierRLI "FichierRLI"
#define C_Section_VSRLI "RLI"
/*END ANNECY JMD }*/
/*
* Animations files script call-backs
*/
#if !defined(U64)
extern CPA_EXPORT SCR_tde_Anl_ReturnValue VS_fn_eScriptCallBackHeader(SCR_tdst_File_Description *_p_stFile,char *_p_szName,char *_ap_szParams[],SCR_tde_Anl_Action _eAction);
extern CPA_EXPORT SCR_tde_Anl_ReturnValue VS_fn_eScriptCallBackGeneral(SCR_tdst_File_Description *_p_stFile,char *_p_szName,char *_ap_szParams[],SCR_tde_Anl_Action _eAction);
extern CPA_EXPORT SCR_tde_Anl_ReturnValue VS_fn_eScriptCallBackLOD(SCR_tdst_File_Description *_p_stFile,char *_p_szName,char *_ap_szParams[],SCR_tde_Anl_Action _eAction);
/*extern CPA_EXPORT SCR_tde_Anl_ReturnValue VS_fn_eScriptCallBackBinHeader(SCR_tdst_File_Description *_p_stFile,char *_p_szName,char *_ap_szParams[],SCR_tde_Anl_Action _eAction);*/
/*extern CPA_EXPORT SCR_tde_Anl_ReturnValue VS_fn_eScriptCallBackBinGeneral(SCR_tdst_File_Description *_p_stFile,char *_p_szName,char *_ap_szParams[],SCR_tde_Anl_Action _eAction);*/
/*extern CPA_EXPORT SCR_tde_Anl_ReturnValue VS_fn_eScriptCallBackBinLOD(SCR_tdst_File_Description *_p_stFile,char *_p_szName,char *_ap_szParams[],SCR_tde_Anl_Action _eAction);*/
#endif /* U64 */
/*************************************************/
/********* global for VS Link Table *************/
/*************************************************/
#if !defined(U64)
extern CPA_EXPORT SCR_tdst_Link_Table VS_g_stLinkTable;
#endif /* U64 */
/*************************************************/
/*
* Initialisation and access to link table for VS name storage
*/
#if !defined(U64)
extern CPA_EXPORT SCR_tdst_Link_Table *VS_fn_p_stGetLinkTable(void);
#endif /* U64 */
extern CPA_EXPORT void VS_fn_vInitLinkTable(void);
extern CPA_EXPORT void VS_fn_vCloseLinkTable(void);
extern CPA_EXPORT void VS_fn_vRegisterAllScriptSections(void);
/*
* For the binarisation
*/
extern CPA_EXPORT GEO_tdxHandleToVisualSet VS_fn_xLoadVisualSet(char* _szSectionName);
/*
extern CPA_EXPORT void VS_fn_vPrepareSaveBinaryBloc();
extern CPA_EXPORT unsigned long VS_fn_ulWriteBinaryBloc(unsigned long _ulStructAddress, char* _p_cDestBuffer);
extern CPA_EXPORT void VS_fn_vWriteAllVSBinaryBlocs(char* _szBinaryFileName);
extern CPA_EXPORT unsigned long VS_fn_ulReadBinaryBloc(char* _p_cLoadedBuffer,unsigned long _ulLoadedBufferSize);
extern CPA_EXPORT void VS_fn_vReadAllVSBinaryBlocs(char* _szBinaryFileName);
extern CPA_EXPORT void VS_fn_vReadAllVSBinaryBlocs2(char* _szBinaryFileName);
extern CPA_EXPORT void VS_fn_vResolveBinaryBloc(unsigned long _ulAddress);
*/
/* !__VSLOAD_H__ */
#endif
#endif /* D_THROW_VISUAL_SET */