Add rayman2 source files
This commit is contained in:
36
Rayman_X/cpa/tempgrp/GliGlou/Drivers/DirectX6/inc/DX6_Caps.h
Normal file
36
Rayman_X/cpa/tempgrp/GliGlou/Drivers/DirectX6/inc/DX6_Caps.h
Normal 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
|
@@ -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__*/
|
15
Rayman_X/cpa/tempgrp/GliGlou/Drivers/DirectX6/inc/MacroD3D.h
Normal file
15
Rayman_X/cpa/tempgrp/GliGlou/Drivers/DirectX6/inc/MacroD3D.h
Normal 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 */
|
23
Rayman_X/cpa/tempgrp/GliGlou/Drivers/DirectX6/inc/TextuD3D.h
Normal file
23
Rayman_X/cpa/tempgrp/GliGlou/Drivers/DirectX6/inc/TextuD3D.h
Normal 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*/
|
Reference in New Issue
Block a user