RetroArch
d3d_defines.h
Go to the documentation of this file.
1 /* RetroArch - A frontend for libretro.
2  * Copyright (C) 2010-2014 - Hans-Kristian Arntzen
3  * Copyright (C) 2011-2017 - Daniel De Matteis
4  *
5  * RetroArch is free software: you can redistribute it and/or modify it under the terms
6  * of the GNU General Public License as published by the Free Software Found-
7  * ation, either version 3 of the License, or (at your option) any later version.
8  *
9  * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  * PURPOSE. See the GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License along with RetroArch.
14  * If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 #ifndef D3DVIDEO_DEFINES_H
18 #define D3DVIDEO_DEFINES_H
19 
20 #if defined(DEBUG) || defined(_DEBUG)
21 #define D3D_DEBUG_INFO
22 #endif
23 
24 #if defined(HAVE_D3D9)
25 /* Direct3D 9 */
26 #if 0
27 #include <d3d9.h>
28 #endif
29 
30 #if 0
31 #define LPDIRECT3D LPDIRECT3D9
32 #define LPDIRECT3DDEVICE LPDIRECT3DDEVICE9
33 #define LPDIRECT3DTEXTURE LPDIRECT3DTEXTURE9
34 #define LPDIRECT3DCUBETEXTURE LPDIRECT3DCUBETEXTURE9
35 #define LPDIRECT3DVERTEXBUFFER LPDIRECT3DVERTEXBUFFER9
36 #define LPDIRECT3DVERTEXSHADER LPDIRECT3DVERTEXSHADER9
37 #define LPDIRECT3DPIXELSHADER LPDIRECT3DPIXELSHADER9
38 #define LPDIRECT3DSURFACE LPDIRECT3DSURFACE9
39 #define LPDIRECT3DVERTEXDECLARATION LPDIRECT3DVERTEXDECLARATION9
40 #define LPDIRECT3DVOLUMETEXTURE LPDIRECT3DVOLUMETEXTURE9
41 #define LPDIRECT3DRESOURCE LPDIRECT3DRESOURCE9
42 #define D3DVERTEXELEMENT D3DVERTEXELEMENT9
43 #define D3DVIEWPORT D3DVIEWPORT9
44 #endif
45 
46 #ifndef D3DCREATE_SOFTWARE_VERTEXPROCESSING
47 #define D3DCREATE_SOFTWARE_VERTEXPROCESSING 0
48 #endif
49 
50 #elif defined(HAVE_D3D8)
51 #if 0
52 #ifdef _XBOX
53 #include <xtl.h>
54 #else
55 #include "../gfx/include/d3d8/d3d8.h"
56 #endif
57 #endif
58 
59 /* Direct3D 8 */
60 #if 0
61 #define LPDIRECT3D LPDIRECT3D8
62 #define LPDIRECT3DDEVICE LPDIRECT3DDEVICE8
63 #define LPDIRECT3DTEXTURE LPDIRECT3DTEXTURE8
64 #define LPDIRECT3DCUBETEXTURE LPDIRECT3DCUBETEXTURE8
65 #define LPDIRECT3DVOLUMETEXTURE LPDIRECT3DVOLUMETEXTURE8
66 #define LPDIRECT3DVERTEXBUFFER LPDIRECT3DVERTEXBUFFER8
67 #define LPDIRECT3DVERTEXDECLARATION (void*)
68 #define LPDIRECT3DSURFACE LPDIRECT3DSURFACE8
69 #define LPDIRECT3DRESOURCE LPDIRECT3DRESOURCE8
70 #define D3DVERTEXELEMENT D3DVERTEXELEMENT8
71 #define D3DVIEWPORT D3DVIEWPORT8
72 #endif
73 
74 #if !defined(D3DLOCK_NOSYSLOCK) && defined(_XBOX)
75 #define D3DLOCK_NOSYSLOCK (0)
76 #endif
77 
78 #if 0
79 #define D3DSAMP_ADDRESSU D3DTSS_ADDRESSU
80 #define D3DSAMP_ADDRESSV D3DTSS_ADDRESSV
81 #define D3DSAMP_MAGFILTER D3DTSS_MAGFILTER
82 #define D3DSAMP_MINFILTER D3DTSS_MINFILTER
83 #endif
84 #endif
85 
86 #endif