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,22 @@
/* ##H_FILE#
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
FILE : SHWConst.H
DESCRIPTION : constante for SHW Module
VERSION : 1.00 / Philippe Thi<68>baut / Creation
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
#ifndef __SHW_CONST_H__
#define __SHW_CONST_H__
#define SHW_C_xNbMaxOfShadows 10
#define SHW_C_xNbMaxOfFacesPerShadow 48 /*24*/
#define SHW_C_xNbMaxOfPointsPerShadow 100/*60*/
#define SHW_C_xDepthPickingObjectsForShadow 8
#define SHW_C_xMaxTriangles 48 /*24*/
#define SHW_C_xMaxGeomObjectPicked 8/*4*/
#endif /* __SHW_CONST_H__ */

View File

@@ -0,0 +1,52 @@
/* ##H_FILE#
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
FILE : SHWCpa.H
DESCRIPTION : cpa include for SHW Module
VERSION : 1.00 / Philippe Thi<68>baut / Creation
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
#ifndef __SHW_CPA_H__
#define __SHW_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#----------------------------------------------------------------------------
Includes Files
---------------------------------------------------------------------------------------*/
#include "ACP_Base.h"
#include "GEO.h"
#include "GLI.h"
#include "COL.h"
#include "SPO.h"
#include "PCS.h"
#include "PO.h"
/*XB980821*/
#ifndef D_THROW_IPO
#include "IPO.h"
#endif /* D_THROW_IPO */
/*End XB*/
/* Oliv' - Portage v15*/
#ifndef U64
#include "DPT.h"
#endif
/* EndOfOliv'*/
#include "MEC.h"
/*#include "ENV.h"*/
/*#include "SRF.h"*/
#include "SND.h"
#include "SCT.h"
#undef EXTERN
#undef extern
#endif /* __SHW_CPA_H__ */

View File

@@ -0,0 +1,89 @@
/* ##H_FILE#
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
FILE : SHWCpa.H
DESCRIPTION : Complex functions of SHW Module
VERSION : 1.00 / Philippe Thi<68>baut / Creation
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
#ifndef __SHW_FUNCT_H__
#define __SHW_FUNCT_H__
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#include "cpa_expt.h"
/* ##F===================================================================================
NAME : SHW_fn_vDrawShadow
DESCRIPTION : Draw a Fake Shadow for a Character
=========================================================================================
CREATION : Philippe Thi<68>baut
=======================================================================================*/
extern CPA_EXPORT void SHW_fn_vDrawShadow( struct GLD_tdstViewportAttributes_ *p_stVpt,
HIE_tdxHandleToSuperObject hHandleOfCharacter,
HIE_tdxHandleToSuperObject _hSprObjSector,
long SectorDrawmask
);
/* ##F===================================================================================
NAME : SHW_fn_vInitShadow
DESCRIPTION : Init of the Array of Geometric Objects for the Characters' shadows
=========================================================================================
CREATION : Philippe Thi<68>baut
=======================================================================================*/
extern CPA_EXPORT void SHW_fn_vInitShadow(GLD_tdhDevice _hGLDDevice);
/* ##F===================================================================================
NAME : SHW_fn_vInitShadowCounter
DESCRIPTION : Initialization of the Counter for the Characters' shadows.
MUST BE RUN AT EACH FRAME
=========================================================================================
CREATION : Philippe Thi<68>baut
=======================================================================================*/
extern CPA_EXPORT void SHW_fn_vInitShadowCounter(void);
/* ##F===================================================================================
NAME : SHW_fn_vSetLevelOfQualityOfShadows
DESCRIPTION : Initialization of the quality of the Shadows
Now it is 0 ( No Shadow) 1 ( Low Quality) or 2 (High Quality)
=========================================================================================
CREATION : Philippe Thi<68>baut
=======================================================================================*/
extern CPA_EXPORT void SHW_fn_vSetLevelOfQualityOfShadows(short xQualityOfShadow);
/*ANNECY VL 01/12/97{*/
/* ##F===================================================================================
NAME : SHW_fn_bIntersectShadowSuperObjectLevel1
DESCRIPTION : Find the face upon which the shadow is projected (For quality level 1 )
this function is also used by gam project to compute foot print location
=========================================================================================
CREATION : Philippe Thi<68>baut
=======================================================================================*/
extern CPA_EXPORT ACP_tdxBool SHW_fn_bIntersectShadowSuperObjectLevel1(
MTH3D_tdstVector *p_stVertexA,
MTH3D_tdstVector *p_stVertexB,
MTH3D_tdstVector *p_ststVectAB,
HIE_tdxHandleToSuperObject _hSprObj,
MTH3D_tdstVector *p_stPickedPoint,
HIE_tdxHandleToSuperObject *p_hPickedSprObj,
ACP_tdxHandleOfObject *p_hPickedObject,
ACP_tdxIndex *p_xPickedElement,
ACP_tdxIndex *p_xPickedFace,
MTH3D_tdstVector *pstGlobalNormalOfPickedFace,
HIE_tdxHandleToSuperObject hHandleOfCharacter);
/*ENDANNECY VL }*/
#ifdef __cplusplus
};
#endif /* __cplusplus */
#endif /* __SHW_FUNCT_H__ */

View File

@@ -0,0 +1,26 @@
/* ##H_FILE#
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
FILE : SHWHandl.H
DESCRIPTION : handle for SHW Module
VERSION : 1.00 / Philippe Thi<68>baut / Creation
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
#ifndef __SHW_HANDLE_H__
#define __SHW_HANDLE_H__
#ifdef __cplusplus
extern "C" {
#endif
/**/
#ifdef __cplusplus
}/* extern "C" */
#endif
#endif /* __SHW_HANDLE_H__ */

View File

@@ -0,0 +1,17 @@
/* ##H_FILE#
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
FILE : SHWMacro.H
DESCRIPTION : Macro for SHW Module
VERSION : 1.00 / Philippe Thi<68>baut / Creation
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
#ifndef _SHW_MACRO_H__
#define _SHW_MACRO_H__
/**/
#endif /* _SHW_MACRO_H__ */

View File

@@ -0,0 +1,30 @@
/* ##H_FILE#
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
FILE : SHWProto.H
DESCRIPTION : Proto for SHW Module
VERSION : 1.00 / Philippe Thi<68>baut / Creation
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
#ifndef __SHW_PROTO_H__
#define __SHW_PROTO_H__
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#include "cpa_expt.h"
#ifdef __cplusplus
};
#endif /* __cplusplus */
#endif /* __SHW_FUNCT_H__ */

View File

@@ -0,0 +1,40 @@
/* ##H_FILE#
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
FILE : SHWStruc.H
DESCRIPTION : Structure of SHW Module
VERSION : 1.00 / Philippe Thi<68>baut / Creation
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
#ifndef __SHWStruc_H__
#define __SHWStruc_H__
#ifdef SHW_MAIN
#ifdef __cplusplus
extern "C" {
#endif
typedef struct SHW_tdstShadowInfo_
{
COL_tdstShadowElement a_stShadowObject[SHW_C_xMaxTriangles];
short bDrawFace[SHW_C_xMaxTriangles];
MTH3D_tdstVector pstGlobalNormal[SHW_C_xMaxTriangles];
HIE_tdxHandleToSuperObject hPickedSpObj;
ACP_tdxHandleOfObject hPickedObject;
ACP_tdxIndex xNbElement;
} SHW_tdstShadowInfo;
#ifdef __cplusplus
}/* extern "C" */
#endif
#endif /* SHW_MAIN*/
#endif /* __SHWStruc_H__*/