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,43 @@
/**********************************************************
* *
* Magnet *
* *
* Author : Ubi China - Marc Trabucato *
* *
**********************************************************/
#if !defined( _MGTPROTO_H_ )
#define _MGTPROTO_H_
/*************************************************************************************************/
#include "cpa_expt.h"
#include "MGTStruc.h"
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/*************************************************************************************************/
/* MGTInit.c */
extern CPA_EXPORT void MGT_fn_vAddObjectToMagnetList ( HIE_tdxHandleToSuperObject p_stObject );
extern CPA_EXPORT void MGT_fn_vDeleteObjectFromMagnetList ( HIE_tdxHandleToSuperObject p_stObject );
extern CPA_EXPORT void MGT_fn_vFirstInitMagnet ( void );
extern CPA_EXPORT void MGT_fn_vLastDesInitMagnet ( void );
/*************************************************************************************************/
/* MGTMain.c */
extern CPA_EXPORT void MGT_fn_vTreatMagnets ( void );
/*************************************************************************************************/
#ifdef __cplusplus
};
#endif /* __cplusplus */
/*************************************************************************************************/
#endif /* _MGTPROTO_H_ */

View File

@@ -0,0 +1,82 @@
/**********************************************************
* *
* Magnet *
* *
* Author : Ubi China - Marc Trabucato *
* *
**********************************************************/
#ifndef _MGTSTRUCT_H_
#define _MGTSTRUCT_H_
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/*
-----------------------------------------------------------------------------
INCLUDES FILES
-----------------------------------------------------------------------------
*/
/*
-----------------------------------------------------------------------------
CONSTANT DECLARATION
-----------------------------------------------------------------------------
*/
#define MGT_MAX_NUMBEROF_MAGNETS 5
#define MGT_MAX_NUMBEROF_MODIFIEDOBJECTS 20
/*
-----------------------------------------------------------------------------
TYPES DEFINITION
-----------------------------------------------------------------------------
*/
/*****************************************************************************/
struct MGT_tdstModifiedObject_;
struct MGT_tdstMagnetModification_;
struct tdstMSMagnet_;
/*****************************************************************************/
/* initial values of a modified object */
typedef struct MGT_tdstModifiedObject_
{
GEO_tdstGeometricObject *p_stMorphedObject; /* a pointer to the influenced geometric object. */
struct MGT_tdstMagnetModification_ *aDEF_hMagnet[MGT_MAX_NUMBEROF_MAGNETS]; /* the magnets which influence the object */
char *d_cFieldBitsAlreadyInfluencedPoints; /* pointer to a field bits of modified points */
MTH3D_tdstVector *d_stOriginalPosition; /* original position of points */
struct COL_tdstOctree_ *p_stOctree;
HIE_tdxHandleToSuperObject h_SuperObject;
} MGT_tdstModifiedObject;
typedef MGT_tdstModifiedObject *MGT_tdxHandleToModifiedObject;
/*****************************************************************************/
/* magnet modification to one object */
typedef struct MGT_tdstMagnetModification_
{
ACP_tdxIndex xIndexOfModifiedObject;
ACP_tdxIndex xNbPoints;
HIE_tdxHandleToSuperObject h_SuperObject; /* the superobject of the initial object */
char *d_cFieldBitsModifiedPoints; /* pointer to a field bits of modified points */
char *d_cFieldBitsInfluencedPoints; /* pointer to a field bits of influenced points 0 : growing , 1 : recover */
unsigned long *d_ulCurrentDuration;
ACP_tdxIndex xIndexOfActivatedMagnet;
ACP_tdxBool bUsed;
} MGT_tdstMagnetModification;
typedef MGT_tdstMagnetModification* MGT_tdxHandleToMagnetModification;
/*****************************************************************************/
/*****************************************************************************/
/*****************************************************************************/
#ifdef __cplusplus
};
#endif /* __cplusplus */
#endif /* _MGTSTRUCT_H_ */