Repository navigation
Expand file tree
/
Copy pathCDirect3DData.h
More file actions
51 lines (40 loc) · 1.64 KB
/
Copy pathCDirect3DData.h
File metadata and controls
51 lines (40 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: core/CDirect3DData.h
* PURPOSE: Header file for Direct3D data class
* DEVELOPERS: Christian Myhre Lundheim <>
* Derek Abdine <>
*
* Multi Theft Auto is available from http://www.multitheftauto.com/
*
*****************************************************************************/
#ifndef __CDIRECT3DDATA_H
#define __CDIRECT3DDATA_H
#include <d3d9.h>
class CDirect3DData
{
public:
CDirect3DData ( void );
~CDirect3DData ( void );
void StoreTransform ( D3DTRANSFORMSTATETYPE dwMatrixToStore, const D3DMATRIX* pMatrix );
void GetTransform ( D3DTRANSFORMSTATETYPE dwRequestedMatrix, D3DMATRIX * pMatrixOut );
inline HWND GetDeviceWindow ( void ) { return m_hDeviceWindow; };
inline void StoreDeviceWindow ( HWND hDeviceWindow ) { m_hDeviceWindow = hDeviceWindow; };
void StoreViewport ( DWORD dwX, DWORD dwY, DWORD dwWidth, DWORD dwHeight );
DWORD GetViewportX ( void );
DWORD GetViewportY ( void );
DWORD GetViewportWidth ( void );
DWORD GetViewportHeight ( void );
private:
D3DMATRIX m_mViewMatrix;
D3DMATRIX m_mProjMatrix;
D3DMATRIX m_mWorldMatrix;
HWND m_hDeviceWindow;
DWORD m_dwViewportX;
DWORD m_dwViewportY;
DWORD m_dwViewportWidth;
DWORD m_dwViewportHeight;
};
#endif