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,200 @@
/*ISI_Ext.h*/
#ifndef __ISI_EXT
#define __ISI_EXT
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/* For DLL using these function :*/
#undef CPA_EXPORT
#if defined(CPA_WANTS_IMPORT)
#define CPA_EXPORT __declspec(dllimport)
#elif defined(CPA_WANTS_EXPORT)
#define CPA_EXPORT __declspec(dllexport)
#else
#define CPA_EXPORT
#endif
#include "GLI\GLI_Defn.h"/*pour ISI_tdstColor*/
#include "IPO\IPOHandl.h"/*pour IPO_tdxHandleToInstanciatedPhysicalObject*/
/*Prototypes*/
/* ##-###########################
## Creating / Deleting
############################## */
/* ##F===================================================================================
NAME : ISI_vInitLoad
DESCRIPTION : Function to initialise the script loading
=========================================================================================
LAST MODIFICATIONS : 20/11/97 David Fournier : New commentary form.
=======================================================================================*/
extern CPA_EXPORT void ISI_vInitLoad(void);
/* ##F===================================================================================
NAME : ISI_fn_hCreateISILOD
DESCRIPTION : Create an ISI level of detail.
INPUT : _hISI = Handle to ISI.
_xNumISILOD = Level of detail number.
_xNbRLI = Number of RLI.
OUTPUT : Return table of RLI.
=========================================================================================
LAST MODIFICATIONS : 20/11/97 David Fournier : New commentary form.
=======================================================================================*/
extern CPA_EXPORT ISI_tdstColor *ISI_fn_hCreateISILOD(ACP_tdxHandleToRadiosity _hISI
,ACP_tdxIndex _xNumISILOD,ACP_tdxIndex _xNbRLI);
/* ##F===================================================================================
NAME : ISI_fn_hCreateISI
DESCRIPTION : Create ISI structure.
INPUT : _xNbISILOD = Number of level of detail.
OUTPUT : handle to ISI.
=========================================================================================
LAST MODIFICATIONS : 20/11/97 David Fournier : New commentary form.
=======================================================================================*/
extern CPA_EXPORT ACP_tdxHandleToRadiosity ISI_fn_hCreateISI(ACP_tdxIndex _xNbISILOD);
/* ##F===================================================================================
NAME : ISI_fn_vFreeISI
DESCRIPTION : Free an ISI structure.
INPUT : _hISI = handle to ISI.
=========================================================================================
LAST MODIFICATIONS : 20/11/97 David Fournier : New commentary form.
=======================================================================================*/
extern CPA_EXPORT void ISI_fn_vFreeISI(ACP_tdxHandleToRadiosity _hISI);
/* ##-###########################
## Accessors
############################## */
/* ##F===================================================================================
NAME : ISI_ColISIToGEO
DESCRIPTION : Convert a ISI_tdstColor in GEO_tdstColor.
INPUT : GEOCol = table of GEO color.
ISICol = table of ISI color.
ulNbr = number of color.
=========================================================================================
LAST MODIFICATIONS : 20/11/97 David Fournier : New commentary form.
=======================================================================================*/
extern CPA_EXPORT void ISI_ColISIToGEO(GEO_tdstColor *GEOCol ,ISI_tdstColor *ISICol,unsigned long ulNbr);
/* ##F===================================================================================
NAME : ISI_ColGEOToISI
DESCRIPTION : Convert a GEO_tdstColor in ISI_tdstColor.
INPUT : ISICol = table of ISI color.
GEOCol = table of GEO color.
ulNbr = number of color.
=========================================================================================
LAST MODIFICATIONS : 20/11/97 David Fournier : New commentary form.
=======================================================================================*/
extern CPA_EXPORT void ISI_ColGEOToISI(ISI_tdstColor *ISICol , GEO_tdstColor *GEOCol,unsigned long ulNbr);
/* ##F===================================================================================
NAME : ISI_fn_xGetNbLOD
DESCRIPTION : Return the number of LOD.
INPUT : _hISI = handle to ISI.
OUTPUT : Number of LOD.
=========================================================================================
LAST MODIFICATIONS : 20/11/97 David Fournier : New commentary form.
=======================================================================================*/
extern CPA_EXPORT ACP_tdxIndex ISI_fn_xGetNbLOD(ACP_tdxHandleToRadiosity _hISI);
/* ##F===================================================================================
NAME : ISI_fn_xGetNbVertexRLILOD
DESCRIPTION : Return the number of RLI for one LOD.
INPUT : _hISI = handle to ISI.
_xNumISILOD = LOD number.
OUTPUT : Number of RLI in the LOD.
=========================================================================================
LAST MODIFICATIONS : 20/11/97 David Fournier : New commentary form.
=======================================================================================*/
extern CPA_EXPORT ACP_tdxIndex ISI_fn_xGetNbVertexRLILOD(ACP_tdxHandleToRadiosity _hISI,ACP_tdxIndex _xNumISILOD);
/* ##F===================================================================================
NAME : ISI_fn_dGetVertexRLILOD
DESCRIPTION : Return the table of RLI for one LOD.
INPUT : _hISI = handle to ISI.
_xNumISILOD = LOD number.
OUTPUT : Table of RLI.
=========================================================================================
LAST MODIFICATIONS : 20/11/97 David Fournier : New commentary form.
=======================================================================================*/
extern CPA_EXPORT ISI_tdstColor *ISI_fn_dGetVertexRLILOD(ACP_tdxHandleToRadiosity _hISI,ACP_tdxIndex _xNumISILOD);
/* ##F===================================================================================
NAME : ISI_fn_xGetNbVertexRLI
DESCRIPTION : Return the number of RLI for the first LOD.
INPUT : _hISI = handle to ISI.
OUTPUT : Number of RLI for the first LOD.
=========================================================================================
LAST MODIFICATIONS : 20/11/97 David Fournier : New commentary form.
=======================================================================================*/
extern CPA_EXPORT ACP_tdxIndex ISI_fn_xGetNbVertexRLI(ACP_tdxHandleToRadiosity _hISI);
/* ##F===================================================================================
NAME : ISI_fn_dGetVertexRLI
DESCRIPTION : Return the table of RLI for the first LOD.
INPUT : _hISI = handle to ISI.
OUTPUT : Table of RLI for the first LOD.
=========================================================================================
LAST MODIFICATIONS : 20/11/97 David Fournier : New commentary form.
=======================================================================================*/
extern CPA_EXPORT ISI_tdstColor *ISI_fn_dGetVertexRLI(ACP_tdxHandleToRadiosity _hISI);
/* ##F===================================================================================
NAME : ISI_fn_vSetVertexRLILOD
DESCRIPTION : Change RLI of one vertex for one LOD.
INPUT : _hISI = handle to ISI.
_p_stColor = adress of ISI color for setting.
_xNumISILOD = LOD number in the ISI.
_xIndex = RLI number in the LOD.
OUTPUT : Table of RLI for the first LOD.
=========================================================================================
LAST MODIFICATIONS : 20/11/97 David Fournier : New commentary form.
=======================================================================================*/
extern CPA_EXPORT void ISI_fn_vSetVertexRLILOD(ACP_tdxHandleToRadiosity _hISI, ISI_tdstColor *_p_stColor,
ACP_tdxIndex _xNumISILOD, ACP_tdxIndex _xIndex);
/* ##F===================================================================================
NAME : ISI_fn_vAmbientLight
DESCRIPTION : Add ambient light to all RLI, create RLI if they not exist.
INPUT : _hSuperObject = hierarchie for lighting.
_xDR = red intensity.
_xDG = green intensity.
_xDB = blue intensity.
=========================================================================================
LAST MODIFICATIONS : 20/11/97 David Fournier : New commentary form.
=======================================================================================*/
extern CPA_EXPORT void ISI_fn_vAmbientLight(HIE_tdxHandleToSuperObject _hSuperObject,
MTH_tdxReal _xDR,
MTH_tdxReal _xDG,
MTH_tdxReal _xDB);
/* ##-###########################
## Saving / Loading
############################## */
/*ANNECY JMD 17/02/98{*/
/* ##F===================================================================================
NAME : ISI_hComputeBlendRLI
DESCRIPTION : compute a blend between two ISI.
INPUT : hRLI1 = first ISI
hRLI2 = second ISI
xNumISILOD = which LOD is affectted
xPercent = percentage of the second ISI, (i.e. there is 1-xpercent of the first ISI)
=========================================================================================
LAST MODIFICATIONS : 17/02/98 Jean-Marc Drouaud
=======================================================================================*/
extern CPA_EXPORT ACP_tdxHandleToRadiosity ISI_hComputeBlendRLI ( ACP_tdxHandleToRadiosity hRLI1, ACP_tdxHandleToRadiosity hRLI2,ACP_tdxIndex xNumISILOD, MTH_tdxReal xPercent ) ;
/*END ANNECY JMD }*/
/*End Proto*/
#ifdef __cplusplus
};
#endif /* __cplusplus */
#endif /*__ISI_EXT*/

View File

@@ -0,0 +1,32 @@
#################
# Version 5.0.3 #
#################
New functions for the binarisation
#################
# Version 5.0.3 #
#################
New function
//Function to adjust hierarchy with a ambient light
extern CPA_EXPORT void ISI_fn_vAmbientLight(HIE_tdxHandleToSuperObject _hSuperObject,
MTH_tdxReal _xDR,
MTH_tdxReal _xDG,
MTH_tdxReal _xDB);
#################
# Version 5.0.2 #
#################
Change for the editors in save.
#################
# Version 5.0.1 #
#################
Correct bug in link table and flag for the editors.
#################
# Version 5.0.0 #
#################
This is a new module which manages the instance specific information.
There are a load, a save and accessors functions.
For any questions ask to Christophe Durand.

View File

@@ -0,0 +1,163 @@
/* ISI_Func.h*/
/* PC Version*/
#ifndef _ISI_FUNC_H_
#define _ISI_FUNC_H_
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/* For DLL using these function :*/
#undef CPA_EXPORT
#if defined(CPA_WANTS_IMPORT)
#define CPA_EXPORT __declspec(dllimport)
#elif defined(CPA_WANTS_EXPORT)
#define CPA_EXPORT __declspec(dllexport)
#else
#define CPA_EXPORT
#endif
#include "GLI\GLI_Defn.h"/*pour ISI_tdstColor*/
#include "IPO\IPOHandl.h"/*pour IPO_tdxHandleToInstanciatedPhysicalObject*/
/*Prototypes*/
/* ##-###########################
## Saving / Loading
############################## */
/* ##F===================================================================================
NAME : ISI_fn_pGetLinkTable
DESCRIPTION : Function to get the link table.
OUTPUT : Link table.
=========================================================================================
LAST MODIFICATIONS : 20/11/97 David Fournier : New commentary form.
=======================================================================================*/
extern CPA_EXPORT SCR_tdst_Link_Table *ISI_fn_pGetLinkTable(void);
/* ##F===================================================================================
NAME : ISI_fn_vDisinitLinkTable
DESCRIPTION : Function to disinit the link table.
=========================================================================================
LAST MODIFICATIONS : 20/11/97 David Fournier : New commentary form.
=======================================================================================*/
extern CPA_EXPORT void ISI_fn_vDisinitLinkTable(void);
/* ##F===================================================================================
NAME : ISI_fn_xLoadISI
DESCRIPTION : Load the ISI of an IPO. (Script callback)
INPUT : p_fFile = script file description.
szAction = action name.
szParams = table of param.
cType = type of action.
OUTPUT : script error code.
=========================================================================================
LAST MODIFICATIONS : 20/11/97 David Fournier : New commentary form.
=======================================================================================*/
extern CPA_EXPORT SCR_tde_Anl_ReturnValue ISI_fn_xLoadISI(SCR_tdst_File_Description *p_fFile, char *szAction, char *szParams[], SCR_tde_Anl_Action cType);
/*ANNECY JMD 17/02/98{*/
/* ##F===================================================================================
NAME : ISI_fn_xLoadISI2
DESCRIPTION : Load the ISI of an PO. (Script callback)
INPUT : p_fFile = script file description.
szAction = action name.
szParams = table of param.
cType = type of action.
OUTPUT : script error code.
=========================================================================================
LAST MODIFICATIONS : 17/02/98 Jean-Marc Drouaud
=======================================================================================*/
extern CPA_EXPORT SCR_tde_Anl_ReturnValue ISI_fn_xLoadISI2(SCR_tdst_File_Description *p_fFile, char *szAction, char *szParams[], SCR_tde_Anl_Action cType);
/*END ANNECY JMD }*/
/* ##F===================================================================================
NAME : ISI_vSaveVertexISI
DESCRIPTION : Save an ISI of an IPO. (Script callback)
INPUT : _p_stFile = script file description.
_sFileName = file name.
_p_vPtr = struct adress.
_xAction = type of action
=========================================================================================
LAST MODIFICATIONS : 20/11/97 David Fournier : New commentary form.
=======================================================================================*/
extern CPA_EXPORT void ISI_vSaveVertexISI(SCR_tdst_File_Description *_p_stFile, char *_sFileName, void *_p_vPtr, SCR_tde_Ntfy_Action _xAction);
/* ##F===================================================================================
NAME : ISI_vSaveISIFromIPO
DESCRIPTION : Save all ISI for one IPO.
INPUT : _hIPO = IPO handle to save.
=========================================================================================
LAST MODIFICATIONS : 20/11/97 David Fournier : New commentary form.
=======================================================================================*/
extern CPA_EXPORT void ISI_vSaveISIFromIPO(IPO_tdxHandleToInstanciatedPhysicalObject _hIPO);
/* ##F===================================================================================
NAME : ISI_fn_vSaveISIFromIPOFromHierarchie
DESCRIPTION : Save all ISI for all IPO which are child of a super object,
or which is the super object.
INPUT : _hSuperObject = super object handle to save.
=========================================================================================
LAST MODIFICATIONS : 20/11/97 David Fournier : New commentary form.
=======================================================================================*/
extern CPA_EXPORT void ISI_fn_vSaveISIFromIPOFromHierarchie(HIE_tdxHandleToSuperObject _hSuperObject);
/* ##F===================================================================================
NAME : ISI_fn_vPrepareSaveBinaryBloc
DESCRIPTION : function to prepare the binary save process.
=========================================================================================
LAST MODIFICATIONS : 20/11/97 David Fournier : New commentary form.
=======================================================================================*/
/*extern CPA_EXPORT void ISI_fn_vPrepareSaveBinaryBloc(void);*/
/* ##F===================================================================================
NAME : ISI_fn_ulWriteBinaryBloc
DESCRIPTION : Write a binary bloc for a ISI
INPUT : _ulStructAddress = Address of the element.
_p_cDestBuffer = Pointer to the buffer.
OUTPUT : length of the data written.
=========================================================================================
LAST MODIFICATIONS : 20/11/97 David Fournier : New commentary form.
=======================================================================================*/
/*extern CPA_EXPORT unsigned long ISI_fn_ulWriteBinaryBloc(unsigned long _ulStructAddress, char* _p_cDestBuffer);*/
/* ##F===================================================================================
NAME : ISI_fn_vWriteAllISIBinaryBlocs
DESCRIPTION : Write all the binary blocs for the ISI
INPUT : _szBinaryFileName = Name of the binary file.
=========================================================================================
LAST MODIFICATIONS : 20/11/97 David Fournier : New commentary form.
=======================================================================================*/
/*extern CPA_EXPORT void ISI_fn_vWriteAllISIBinaryBlocs(char* _szBinaryFileName);*/
/* ##F===================================================================================
NAME : ISI_fn_ulReadISIBinaryBloc
DESCRIPTION : Read the binary bloc for ISI.
INPUT : _p_cLoadedBuffer = pointer to the loaded buffer.
_ulLoadedBufferSize = Size of the loaded buffer.
OUTPUT : The pointer to the allocated element.
=========================================================================================
LAST MODIFICATIONS : 20/11/97 David Fournier : New commentary form.
=======================================================================================*/
/*extern CPA_EXPORT void ISI_fn_ulReadISIBinaryBloc(unsigned long _ulLoadedBuffer);*/
/* ##F===================================================================================
NAME : ISI_fn_vReadAllISIBinaryBlocs
DESCRIPTION : Read all the binary blocs for the ISI.
INPUT : _szBinaryFile = Name of the binary file.
=========================================================================================
LAST MODIFICATIONS : 20/11/97 David Fournier : New commentary form.
=======================================================================================*/
/*extern CPA_EXPORT void ISI_fn_vReadAllISIBinaryBlocs(char* _szBinaryFile);*/
/*End Proto*/
#ifdef __cplusplus
};
#endif /* __cplusplus */
#endif /* _ISI_FUNC_H_ */