/* RetroArch - A frontend for libretro. * Copyright (C) 2010-2014 - Hans-Kristian Arntzen * Copyright (C) 2011-2014 - Daniel De Matteis * * RetroArch is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Found- * ation, either version 3 of the License, or (at your option) any later version. * * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along with RetroArch. * If not, see . */ #ifndef D3DVIDEO_DEFINES_H #define D3DVIDEO_DEFINES_H #if defined(HAVE_WIN32_D3D9) || defined(_XBOX360) //Direct3D 9 #include #include #include #define LPDIRECT3D LPDIRECT3D9 #define LPDIRECT3DDEVICE LPDIRECT3DDEVICE9 #define LPDIRECT3DTEXTURE LPDIRECT3DTEXTURE9 #define LPDIRECT3DVERTEXBUFFER LPDIRECT3DVERTEXBUFFER9 #define LPDIRECT3DVERTEXSHADER LPDIRECT3DVERTEXSHADER9 #define LPDIRECT3DPIXELSHADER LPDIRECT3DPIXELSHADER9 #define LPDIRECT3DSURFACE LPDIRECT3DSURFACE9 #define LPDIRECT3DVERTEXDECLARATION LPDIRECT3DVERTEXDECLARATION9 #define D3DVERTEXELEMENT D3DVERTEXELEMENT9 #define D3DVIEWPORT D3DVIEWPORT9 #define D3DCREATE_CTX Direct3DCreate9 #elif defined(_XBOX1) //Direct3D 8 #define LPDIRECT3D LPDIRECT3D8 #define LPDIRECT3DDEVICE LPDIRECT3DDEVICE8 #define LPDIRECT3DTEXTURE LPDIRECT3DTEXTURE8 #define LPDIRECT3DVERTEXBUFFER LPDIRECT3DVERTEXBUFFER8 #define LPDIRECT3DVERTEXSHADER LPDIRECT3DVERTEXSHADER8 #define LPDIRECT3DPIXELSHADER LPDIRECT3DPIXELSHADER8 #define LPDIRECT3DSURFACE LPDIRECT3DSURFACE8 #define D3DVERTEXELEMENT D3DVERTEXELEMENT8 #define D3DVIEWPORT D3DVIEWPORT8 #define D3DCREATE_CTX Direct3DCreate8 #endif #endif