-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathSkyBox.h
62 lines (43 loc) · 1.1 KB
/
SkyBox.h
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
52
53
54
55
56
57
58
59
60
61
62
// SkyBox.h: interface for the CSkyBox class.
//
//////////////////////////////////////////////////////////////////////
#include <windows.h>
#include <commdlg.h>
#include <tchar.h>
#include <stdio.h>
#include <d3dx9.h>
#include "DXUtil.h"
#include "D3DEnumeration.h"
#include "D3DSettings.h"
#include "D3DApp.h"
#include "D3DFont.h"
#include "D3DUtil.h"
#include "log.h"
class SBVERTEX
{
public:
float x,y,z;
float tu,tv;
};
#define SBVERTEX_FVF ( D3DFVF_XYZ | D3DFVF_TEX1 )
//--------------------------------------------------------------------------
// Name:
// Desc:
//--------------------------------------------------------------------------
class CSkyBox
{
//variables
protected:
LPDIRECT3DDEVICE9 m_pd3dDevice;
LPD3DXEFFECT m_pEffect;
LPD3DXMESH pMesh;
LPDIRECT3DTEXTURE9 pTex;
//functions
public:
HRESULT Init(LPDIRECT3DDEVICE9, LPD3DXEFFECT g_pEffect, LPCWSTR);
HRESULT LoadTexture(LPCWSTR temp);
HRESULT Render(D3DXVECTOR3 CameraCoord, float m_fElapsedTime, D3DXMATRIX* AdditionalMatrix, D3DXMATRIX matView, D3DXMATRIX matProj);
HRESULT Release();
CSkyBox();
virtual ~CSkyBox();
};