Add rayman2 source files
This commit is contained in:
19
Rayman_X/cpa/public/PCS/PCS_Cst.h
Normal file
19
Rayman_X/cpa/public/PCS/PCS_Cst.h
Normal file
@@ -0,0 +1,19 @@
|
||||
/* ##H_FILE#
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
FILE : PCS_Cst.h
|
||||
|
||||
DESCRIPTION : Constantes for Physical collide set module
|
||||
|
||||
VERSION : 1.00/Olivier Jourdan/Creation
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
*/
|
||||
#ifndef __PCS_CONST_H__
|
||||
#define __PCS_CONST_H__
|
||||
|
||||
#define C_ucTypeZdd (unsigned char)0
|
||||
#define C_ucTypeZdm (unsigned char)1
|
||||
#define C_ucTypeZde (unsigned char)2
|
||||
#define C_ucTypeZdr (unsigned char)3
|
||||
|
||||
#endif /* __PCS_CONST_H__ */
|
67
Rayman_X/cpa/public/PCS/PCS_Fct.h
Normal file
67
Rayman_X/cpa/public/PCS/PCS_Fct.h
Normal file
@@ -0,0 +1,67 @@
|
||||
/* ##H_FILE#
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
FILE : PCS_fct.h
|
||||
|
||||
DESCRIPTION : Complex function of Physical collide set module
|
||||
|
||||
VERSION : 1.00/Olivier Jourdan/Creation
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
*/
|
||||
#ifndef __PCS_FUNCT_H__
|
||||
#define __PCS_FUNCT_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#include "cpa_expt.h"
|
||||
|
||||
/* ##F===================================================================================
|
||||
NAME : PCS_fn_hGetGeoObjOfPhysicalCollSet
|
||||
DESCRIPTION : Get the Zdx of type in Physical Collide Set
|
||||
INPUT : ucZoneType [type of zone]
|
||||
hPhyCollSet [handle to physical collide set]
|
||||
OUTPUT : handle of object zdx
|
||||
=========================================================================================
|
||||
CREATION : Olivier Jourdan
|
||||
=======================================================================================*/
|
||||
extern CPA_EXPORT ACP_tdxHandleOfObject PCS_fn_hGetGeoObjOfPhysicalCollSet(
|
||||
unsigned char ucZoneType,
|
||||
PCS_tdxHandleToPhysicalCollSet hPhyCollSet);
|
||||
|
||||
|
||||
/* ##F===================================================================================
|
||||
NAME : PCS_fn_vSetGeoObjOfPhysicalCollSet
|
||||
DESCRIPTION : Set the Zdx of type in Physical Collide Set
|
||||
INPUT : ucZoneType [type of zone]
|
||||
hPhyCollSet [handle to physical collide set]
|
||||
hGeoObj [handle of object zdx]
|
||||
=========================================================================================
|
||||
CREATION : Olivier Jourdan
|
||||
=======================================================================================*/
|
||||
extern CPA_EXPORT void PCS_fn_vSetGeoObjOfPhysicalCollSet(
|
||||
unsigned char ucZoneType,
|
||||
PCS_tdxHandleToPhysicalCollSet hPhyCollSet,
|
||||
ACP_tdxHandleOfObject hGeoObj);
|
||||
|
||||
|
||||
/* ##F===================================================================================
|
||||
NAME : PCS_fn_vAddPhysicalCollSetToBoundingVolume
|
||||
DESCRIPTION : Compute the bouding volume of the physical collide set
|
||||
INPUT : _hBoundingVolume [handle to bounding volume]
|
||||
_hPhyCollSet [handle to physical collide set]
|
||||
=========================================================================================
|
||||
CREATION : Olivier Jourdan
|
||||
=======================================================================================*/
|
||||
extern CPA_EXPORT void PCS_fn_vAddPhysicalCollSetToBoundingVolume(
|
||||
ACP_tdxHandleOfObject _hBoundingVolume,
|
||||
PCS_tdxHandleToPhysicalCollSet _hPhyCollSet);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
};
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __PCS_FUNCT_H__ */
|
24
Rayman_X/cpa/public/PCS/PCS_Hdl.h
Normal file
24
Rayman_X/cpa/public/PCS/PCS_Hdl.h
Normal file
@@ -0,0 +1,24 @@
|
||||
/* ##H_FILE#
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
FILE : PCS_Hdl.h
|
||||
|
||||
DESCRIPTION : handle of Physical collide set module
|
||||
|
||||
VERSION : 1.00/Olivier Jourdan/Creation
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
*/
|
||||
#ifndef __PCS_HANDLE_H__
|
||||
#define __PCS_HANDLE_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct tdstPhysicalCollSet_ *PCS_tdxHandleToPhysicalCollSet;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}/* extern "C" */
|
||||
#endif
|
||||
|
||||
#endif /* __PCS_HANDLE_H__ */
|
71
Rayman_X/cpa/public/PCS/PCS_Mcr.h
Normal file
71
Rayman_X/cpa/public/PCS/PCS_Mcr.h
Normal file
@@ -0,0 +1,71 @@
|
||||
/* ##H_FILE#
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
FILE : PCS_Mcr.h
|
||||
|
||||
DESCRIPTION : Macro function of Physical collide set module
|
||||
|
||||
VERSION : 1.00/Olivier Jourdan/Creation
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
*/
|
||||
#ifndef _PCS_MACRO_H__
|
||||
#define _PCS_MACRO_H__
|
||||
|
||||
/* ##-########################### */
|
||||
/* ##SECTION Get ZDX */
|
||||
/* ############################## */
|
||||
|
||||
/* ##M===================================================================================
|
||||
NAME : PCS_M_hGetZddGeoObjOfPhysicalCollSet
|
||||
DESCRIPTION : Get Zdd [zone de detection (detection zone)]
|
||||
=======================================================================================*/
|
||||
#define PCS_M_hGetZddGeoObjOfPhysicalCollSet(_hPhyCollSet) ((_hPhyCollSet)->hZdd)
|
||||
|
||||
/* ##M===================================================================================
|
||||
NAME : PCS_M_hGetZdeGeoObjOfPhysicalCollSet
|
||||
DESCRIPTION : Get Zde [zone d evenement (event zone)]
|
||||
=======================================================================================*/
|
||||
#define PCS_M_hGetZdeGeoObjOfPhysicalCollSet(_hPhyCollSet) ((_hPhyCollSet)->hZde)
|
||||
|
||||
/* ##M===================================================================================
|
||||
NAME : PCS_M_hGetZdmGeoObjOfPhysicalCollSet
|
||||
DESCRIPTION : Get Zdm [zone de mouvement (movment zone)]
|
||||
=======================================================================================*/
|
||||
#define PCS_M_hGetZdmGeoObjOfPhysicalCollSet(_hPhyCollSet) ((_hPhyCollSet)->hZdm)
|
||||
|
||||
/* ##M===================================================================================
|
||||
NAME : PCS_M_hGetZdrGeoObjOfPhysicalCollSet
|
||||
DESCRIPTION : Get Zdr [zone de recalage ]
|
||||
=======================================================================================*/
|
||||
#define PCS_M_hGetZdrGeoObjOfPhysicalCollSet(_hPhyCollSet) ((_hPhyCollSet)->hZdr)
|
||||
|
||||
/* ##-########################### */
|
||||
/* ##SECTION Set ZDX */
|
||||
/* ############################## */
|
||||
|
||||
/* ##M===================================================================================
|
||||
NAME : PCS_M_vSetZddGeoObjOfPhysicalCollSet
|
||||
DESCRIPTION : Get Zdd [zone de detection (detection zone)]
|
||||
=======================================================================================*/
|
||||
#define PCS_M_vSetZddGeoObjOfPhysicalCollSet(_hPhyCollSet,_hGeoObj) ((_hPhyCollSet)->hZdd = (_hGeoObj) )
|
||||
|
||||
|
||||
/* ##M===================================================================================
|
||||
NAME : PCS_M_vSetZdeGeoObjOfPhysicalCollSet
|
||||
DESCRIPTION : Get Zde [zone d evenement (event zone)]
|
||||
=======================================================================================*/
|
||||
#define PCS_M_vSetZdeGeoObjOfPhysicalCollSet(_hPhyCollSet,_hGeoObj) ((_hPhyCollSet)->hZde = (_hGeoObj) )
|
||||
|
||||
/* ##M===================================================================================
|
||||
NAME : PCS_M_vSetZdmGeoObjOfPhysicalCollSet
|
||||
DESCRIPTION : Get Zdm [zone de mouvement (movment zone)]
|
||||
=======================================================================================*/
|
||||
#define PCS_M_vSetZdmGeoObjOfPhysicalCollSet(_hPhyCollSet,_hGeoObj) ((_hPhyCollSet)->hZdm = (_hGeoObj) )
|
||||
|
||||
/* ##M===================================================================================
|
||||
NAME : PCS_M_vSetZdrGeoObjOfPhysicalCollSet
|
||||
DESCRIPTION : Get Zdr [zone de recalage]
|
||||
=======================================================================================*/
|
||||
#define PCS_M_vSetZdrGeoObjOfPhysicalCollSet(_hPhyCollSet,_hGeoObj) ((_hPhyCollSet)->hZdr = (_hGeoObj) )
|
||||
|
||||
#endif /* _PCS_MACRO_H__ */
|
116
Rayman_X/cpa/public/PCS/PCS_Prt.h
Normal file
116
Rayman_X/cpa/public/PCS/PCS_Prt.h
Normal file
@@ -0,0 +1,116 @@
|
||||
/* ##H_FILE#
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
FILE : PCS_Prt.h
|
||||
|
||||
DESCRIPTION : Proto of Physical collide set module
|
||||
|
||||
VERSION : 1.00/Olivier Jourdan/Creation
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
*/
|
||||
#ifndef __PCS_PROTO_H__
|
||||
#define __PCS_PROTO_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "cpa_expt.h"
|
||||
|
||||
/* ##F===================================================================================
|
||||
NAME : PCS_fn_hCreatePhysicalCollideSet
|
||||
DESCRIPTION : Creates the structure and returns an handle on it
|
||||
OUTPUT : handle to physical collide set
|
||||
=========================================================================================
|
||||
CREATION : Olivier Jourdan
|
||||
=======================================================================================*/
|
||||
extern CPA_EXPORT PCS_tdxHandleToPhysicalCollSet PCS_fn_hCreatePhysicalCollideSet();
|
||||
|
||||
|
||||
/* ##F===================================================================================
|
||||
NAME : PCS_fn_hGetZddGeoObjOfPhysicalCollSet
|
||||
DESCRIPTION : get Zdd (zone de detection)
|
||||
INPUT : handle to physical collide set
|
||||
OUTPUT : handle of object zdd
|
||||
=========================================================================================
|
||||
CREATION : Olivier Jourdan
|
||||
=======================================================================================*/
|
||||
extern ACP_tdxHandleOfObject PCS_fn_hGetZddGeoObjOfPhysicalCollSet(PCS_tdxHandleToPhysicalCollSet _hPhyCollSet);
|
||||
|
||||
/* ##F===================================================================================
|
||||
NAME : PCS_fn_hGetZdeGeoObjOfPhysicalCollSet
|
||||
DESCRIPTION : get Zde (zone d evenement)
|
||||
INPUT : handle to physical collide set
|
||||
OUTPUT : handle of object zde
|
||||
=========================================================================================
|
||||
CREATION : Olivier Jourdan
|
||||
=======================================================================================*/
|
||||
extern ACP_tdxHandleOfObject PCS_fn_hGetZdeGeoObjOfPhysicalCollSet(PCS_tdxHandleToPhysicalCollSet _hPhyCollSet);
|
||||
|
||||
/* ##F===================================================================================
|
||||
NAME : PCS_fn_hGetZdrGeoObjOfPhysicalCollSet
|
||||
DESCRIPTION : get Zdr (zone de recalage)
|
||||
INPUT : handle to physical collide set
|
||||
OUTPUT : handle of object zdr
|
||||
=========================================================================================
|
||||
CREATION : Olivier Jourdan
|
||||
=======================================================================================*/
|
||||
extern ACP_tdxHandleOfObject PCS_fn_hGetZdrGeoObjOfPhysicalCollSet(PCS_tdxHandleToPhysicalCollSet _hPhyCollSet);
|
||||
|
||||
/* ##F===================================================================================
|
||||
NAME : PCS_fn_hGetZdmGeoObjOfPhysicalCollSet
|
||||
DESCRIPTION : get Zdm (zone de mouvement)
|
||||
INPUT : handle to physical collide set
|
||||
OUTPUT : handle of object zdm
|
||||
=========================================================================================
|
||||
CREATION : Olivier Jourdan
|
||||
=======================================================================================*/
|
||||
extern ACP_tdxHandleOfObject PCS_fn_hGetZdmGeoObjOfPhysicalCollSet(PCS_tdxHandleToPhysicalCollSet _hPhyCollSet);
|
||||
|
||||
/* ##F===================================================================================
|
||||
NAME : PCS_fn_vSetZddGeoObjOfPhysicalCollSet
|
||||
DESCRIPTION : get Zdd (zone de detection)
|
||||
INPUT : handle to physical collide set
|
||||
handle of object zdd
|
||||
=========================================================================================
|
||||
CREATION : Olivier Jourdan
|
||||
=======================================================================================*/
|
||||
extern void PCS_fn_vSetZddGeoObjOfPhysicalCollSet(PCS_tdxHandleToPhysicalCollSet _hPhyCollSet,ACP_tdxHandleOfObject _hGeoObj);
|
||||
|
||||
|
||||
/* ##F===================================================================================
|
||||
NAME : PCS_fn_vSetZdeGeoObjOfPhysicalCollSet
|
||||
DESCRIPTION : get Zde (zone d evenement
|
||||
INPUT : handle to physical collide set
|
||||
handle of object zde
|
||||
=========================================================================================
|
||||
CREATION : Olivier Jourdan
|
||||
=======================================================================================*/
|
||||
extern void PCS_fn_vSetZdeGeoObjOfPhysicalCollSet(PCS_tdxHandleToPhysicalCollSet _hPhyCollSet,ACP_tdxHandleOfObject _hGeoObj);
|
||||
|
||||
/* ##F===================================================================================
|
||||
NAME : PCS_fn_vSetZdmGeoObjOfPhysicalCollSet
|
||||
DESCRIPTION : get Zdm (zone de mouvement)
|
||||
INPUT : handle to physical collide set
|
||||
handle of object zdm
|
||||
=========================================================================================
|
||||
CREATION : Olivier Jourdan
|
||||
=======================================================================================*/
|
||||
extern void PCS_fn_vSetZdmGeoObjOfPhysicalCollSet(PCS_tdxHandleToPhysicalCollSet _hPhyCollSet,ACP_tdxHandleOfObject _hGeoObj);
|
||||
|
||||
|
||||
/* ##F===================================================================================
|
||||
NAME : PCS_fn_vSetZdrGeoObjOfPhysicalCollSet
|
||||
DESCRIPTION : get Zdr (zone de recalage)
|
||||
INPUT : handle to physical collide set
|
||||
handle of object zdr
|
||||
=========================================================================================
|
||||
CREATION : Olivier Jourdan
|
||||
=======================================================================================*/
|
||||
extern void PCS_fn_vSetZdrGeoObjOfPhysicalCollSet(PCS_tdxHandleToPhysicalCollSet _hPhyCollSet,ACP_tdxHandleOfObject _hGeoObj);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}/* extern "C" */
|
||||
#endif
|
||||
|
||||
#endif /* __PCS_PROTO_H__ */
|
35
Rayman_X/cpa/public/PCS/PCS_Str.h
Normal file
35
Rayman_X/cpa/public/PCS/PCS_Str.h
Normal file
@@ -0,0 +1,35 @@
|
||||
/* ##H_FILE#
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
FILE : PCS_Str.h
|
||||
|
||||
DESCRIPTION : Structure of Physical collide set module
|
||||
|
||||
VERSION : 1.00/Olivier Jourdan/Creation
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
*/
|
||||
#ifndef __PCSStruc_H__
|
||||
#define __PCSStruc_H__
|
||||
|
||||
#ifdef PCS_MAIN
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct tdstPhysicalCollSet_
|
||||
{
|
||||
ACP_tdxHandleOfObject hZdm;
|
||||
ACP_tdxHandleOfObject hZdd;
|
||||
ACP_tdxHandleOfObject hZde;
|
||||
ACP_tdxHandleOfObject hZdr;
|
||||
|
||||
} tdstPhysicalCollSet;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}/* extern "C" */
|
||||
#endif
|
||||
|
||||
#endif /* PCS_MAIN*/
|
||||
|
||||
#endif /* __PCSStruc_H__*/
|
28
Rayman_X/cpa/public/PCS/PCS_cpa.h
Normal file
28
Rayman_X/cpa/public/PCS/PCS_cpa.h
Normal file
@@ -0,0 +1,28 @@
|
||||
/* ##H_FILE#
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
FILE : PCS_Cpa.h
|
||||
|
||||
DESCRIPTION : Cpa include for Physical collide set module
|
||||
|
||||
VERSION : 1.00/Olivier Jourdan/Creation
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
*/
|
||||
#ifndef __PCS_CPA_H__
|
||||
#define __PCS_CPA_H__
|
||||
|
||||
#if defined(VISUAL)
|
||||
#pragma warning(disable:4010) /** single-line comment contains line-continuation character **/
|
||||
#pragma warning(disable:4100) /** unreferenced formal parameter **/
|
||||
#pragma warning(disable:4702) /** unreachable code **/
|
||||
#pragma warning(disable:4244) /** conversion from 'type1' to 'type2', possible loss of data **/
|
||||
#endif /* VISUAL */
|
||||
|
||||
#include "ACP_Base.h"
|
||||
#include "GEO.h"
|
||||
|
||||
|
||||
#undef EXTERN
|
||||
#undef extern
|
||||
|
||||
#endif /* __PCS_CPA_H__ */
|
Reference in New Issue
Block a user