zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Video_DX9.hxx
Go to the documentation of this file.
1 /* This file is part of the Zenipex Library (zenilib).
2  * Copyright (C) 2011 Mitchell Keith Bloch (bazald).
3  *
4  * zenilib is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * zenilib is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with zenilib. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef ZENI_VIDEO_DX9_HXX
19 #define ZENI_VIDEO_DX9_HXX
20 
21 // HXXed below
22 #include <Zeni/Color.h>
23 #include <Zeni/Light.h>
24 #include <Zeni/Material.h>
25 #include <Zeni/Renderable.h>
26 #include <Zeni/Shader.h>
27 #include <Zeni/Texture.h>
28 #include <Zeni/Textures.h>
29 #include <Zeni/Video.h>
30 
31 #include <Zeni/Video_DX9.h>
32 
33 // Not HXXed
34 #include <Zeni/Fog.h>
35 #include <Zeni/Fonts.h>
36 #include <Zeni/Vertex_Buffer.h>
37 
38 #include <Zeni/Define.h>
39 
40 #ifndef DISABLE_DX9
41 
42 namespace Zeni {
43 
45  return m_d3d;
46  }
47 
49  return m_d3d_device;
50  }
51 
53  return m_matrix_stack;
54  }
55 
56  const int & Video_DX9::get_dpi() {
57  return m_dpi;
58  }
59 
61  return m_dpi / ZENI_STANDARD_DPI;
62  }
63 
64 }
65 
66 #endif
67 
68 #include <Zeni/Undefine.h>
69 
70 #include <Zeni/Color.hxx>
71 #include <Zeni/Light.hxx>
72 #include <Zeni/Material.hxx>
73 #include <Zeni/Renderable.hxx>
74 #include <Zeni/Shader.hxx>
75 #include <Zeni/Texture.hxx>
76 #include <Zeni/Textures.hxx>
77 #include <Zeni/Video.hxx>
78 
79 #endif
struct IDirect3DDevice9 * LPDIRECT3DDEVICE9
Definition: d3d9.h:587
LPDIRECT3DDEVICE9 & get_d3d_device()
See DirectX Documentation for details.
Definition: Video_DX9.hxx:48
const int & get_dpi()
Get the screen&#39;s DPI.
Definition: Video_DX9.hxx:56
#define ZENI_STANDARD_DPI
Definition: Define.h:76
struct IDirect3D9 * LPDIRECT3D9
Definition: d3d9.h:361
interface ID3DXMatrixStack * LPD3DXMATRIXSTACK
Definition: d3dx9math.h:1304
LPD3DXMATRIXSTACK & get_matrix_stack()
Get access to a matrix stack stored by this class.
Definition: Video_DX9.hxx:52
float get_dpi_ratio()
Get the ratio of the screen&#39;s DPI to the normal DPI.
Definition: Video_DX9.hxx:60
LPDIRECT3D9 & get_d3d()
See DirectX Documentation for details.
Definition: Video_DX9.hxx:44