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,36 @@
/*
=======================================================================================
Name : DX6_Caps.h
Author : vincent lhullier Date :30/10/98
Description : capabilities of driver (depend on hardware)
=======================================================================================
*/
#ifndef __DX6_CAPS_H__
#define __DX6_CAPS_H__
#include "d3d.h"
#include "ddraw.h"
#include "DLLCaps.h"
#define GLI_DX6_TexFormat4444 0
#define GLI_DX6_TexFormat1555 1
#define GLI_DX6_TexFormat565 2
#define GLI_DX6_TexFormatPalette8 3
#define GLI_DX6_TexFormat888 4
#define GLI_DX6_TexFormat8888 5
#define GLI_DX6_TexNbFormats 6
HRESULT GLI_DX6_hGetVideoMemory( LPDIRECTDRAW4 _pDD4, long _lDDSCaps, unsigned long *_ulTotal, unsigned long *_ulLeft );
HRESULT GLI_DX6_fn_hGetDriverCaps( tdstGliCaps *_pst_Caps, long _lFlags, LPDIRECTDRAW4 _pDD4 );
HRESULT GLI_DX6_fn_hGetDeviceCaps( tdstGliCaps *_pst_Caps, LPDIRECTDRAW4 _pDD4, D3DDEVICEDESC *_pst_DevDesc );
HRESULT GLI_DX6_fn_hGetPixelFormats( void );
void GLI_DX6_fn_vGetPixelFormat( char _ucFormatAsked, DDPIXELFORMAT *_p_stPixelFormat );
void GLI_DX6_fn_vPrecalculateTextureSize( void );
long GLI_DX6_fn_lGetPrecalculatedTextureSize( char _cTexFormat, char _cMipmap, long _lWidth, long _lHeight );
#endif

View File

@@ -0,0 +1,37 @@
/*
=======================================================================================
Name : DX6_Choose.h
Author : vincent lhullier Date :21/08/98
Description : choose DirectX modes
=======================================================================================
*/
#ifndef __DX6_CHOOSE_H__
#define __DX6_CHOOSE_H__
#include <d3d.h>
#define DX6_C_Dev_Hardware 0x00000001
/*
=======================================================================================
Main function
=======================================================================================
*/
void GLI_fn_vChooseDisplay( void );
/*
=======================================================================================
Access functions
=======================================================================================
*/
/*
* for device
*/
char GLIDX6_fnc_IsHardware( void );
long GLIDX6_fnl_GetDeviceFlag( void );
D3DDEVICEDESC * GLIDX6_fnpst_GetDeviceDesc( void );
#endif /*__DX6_CHOOSE_H__*/

View File

@@ -0,0 +1,15 @@
#ifndef MACROD3D_H
#define MACROD3D_H
#define D3D_M_vRelease(x) if((x)!=NULL) {(x)->lpVtbl->Release(x); (x) = NULL;}
#define IDirect3D0(p,fonction) ( (((p) != NULL) && ((p)->lpVtbl != NULL)) ? (p)->lpVtbl->##fonction##(p) : -1)
#define IDirect3D1(p,fonction,a) ( (((p) != NULL) && ((p)->lpVtbl != NULL)) ? (p)->lpVtbl->##fonction##(p,a) : -1)
#define IDirect3D2(p,fonction,a,b) ( (((p) != NULL) && ((p)->lpVtbl != NULL)) ? (p)->lpVtbl->##fonction##(p,a,b) : -1)
#define IDirect3D3(p,fonction,a,b,c) ( (((p) != NULL) && ((p)->lpVtbl != NULL)) ? (p)->lpVtbl->##fonction##(p,a,b,c) : -1)
#define IDirect3D4(p,fonction,a,b,c,d) ( (((p) != NULL) && ((p)->lpVtbl != NULL)) ? (p)->lpVtbl->##fonction##(p,a,b,c,d) : -1)
#define IDirect3D5(p,fonction,a,b,c,d,e) ( (((p) != NULL) && ((p)->lpVtbl != NULL)) ? (p)->lpVtbl->##fonction##(p,a,b,c,d,e) : -1)
#endif /* MACROD3D_H */

View File

@@ -0,0 +1,23 @@
#ifndef GLI_TEXTUD3D_H
#define GLI_TEXTUD3D_H
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/*
typedef struct GLI_tdstTextureD3D_
{
//D3DTEXTUREHANDLE hD3DTexture;
LPDIRECT3DTEXTURE2 p_stD3DTexture;
//LPDIRECTDRAWSURFACE p_stDDSurface;
LPDIRECTDRAWSURFACE4 p_stDDSurface;
} GLI_tdstTextureD3D;
*/
#ifdef __cplusplus
};
#endif /* __cplusplus */
#endif /* GLI_TEXTUD3D_H*/