DI-Guy SDK Documentation  13.2
diguyDx9Util.h
Go to the documentation of this file.
1 
2 /*********************************************************************
3  **
4  *2 diguyDx9Util
5  **
6  ** Utilities for accessing the Direct3D device and a matrix stack.
7  **
8  ** s_d3dDevice9 must be assigned the Direct3D device.
9  ** s_d3dMatStack must be created using D3DXCreateMatrixStack
10  */
11 
12 #ifndef diguyDx9Util_h__
13 #define diguyDx9Util_h__
14 
15 struct IDirect3DDevice9;
16 struct ID3DXMatrixStack;
17 struct D3DXMATRIX;
18 struct ID3DXConstantTable;
19 
20 /*
21  * Convenience function to create an orientation matrix using a Euler
22  * rotation triplet. Angles are in degrees.
23  */
24 extern void fillOrientationMatrix(D3DXMATRIX* orientMat, const float rotDeg[]);
25 
26 extern IDirect3DDevice9* s_d3dDevice9;
27 extern ID3DXMatrixStack* s_d3dMatStack;
28 extern ID3DXConstantTable* s_constantTable;
29 
30 #endif
ID3DXConstantTable * s_constantTable
Definition: diguyDx9Util.cpp:13
ID3DXMatrixStack * s_d3dMatStack
Definition: diguyDx9Util.cpp:12
void fillOrientationMatrix(D3DXMATRIX *orientMat, const float rotDeg[])
Definition: diguyDx9Util.cpp:17
IDirect3DDevice9 * s_d3dDevice9
Definition: diguyDx9Util.cpp:11