Revision 760,
1.3 KB
checked in by szirmay, 19 years ago
(diff) |
Added a folder remotely
|
Line | |
---|
1 | #pragma once
|
---|
2 | #include "Mesh.h"
|
---|
3 | #include "Parameters.h"
|
---|
4 | #include "DXTexture.h"
|
---|
5 |
|
---|
6 | class CameraEffects
|
---|
7 | {
|
---|
8 | IDirect3DDevice9* pd3dDevice;
|
---|
9 | IDirect3DTexture9* DisplacementTexture; // texture for simple rendering
|
---|
10 | IDirect3DTexture9* ColorTexture;
|
---|
11 | CDXTexture* FrameBufferTexture;
|
---|
12 | CDXTexture* FrameBufferDepthTexture;
|
---|
13 |
|
---|
14 | UINT m_ScreenWidth;
|
---|
15 | UINT m_ScreenHeight;
|
---|
16 |
|
---|
17 | IDirect3DVertexBuffer9* FullScreenQuad;
|
---|
18 |
|
---|
19 | ID3DXEffect* g_pEffect;
|
---|
20 | ID3DXEffect* g_pPostEffect;
|
---|
21 | Mesh* mesh;
|
---|
22 | Mesh* lightmesh;
|
---|
23 |
|
---|
24 | HRESULT hr; // return codes
|
---|
25 |
|
---|
26 | D3DXMATRIX m_InvWorld; // inverse world matrix
|
---|
27 |
|
---|
28 | public:
|
---|
29 | CModelViewerCamera* camera; //!!
|
---|
30 | Parameters* params;
|
---|
31 | int currentmethod;
|
---|
32 | int currentmesh;
|
---|
33 | D3DXVECTOR3* LightPos;
|
---|
34 |
|
---|
35 | public:
|
---|
36 | CameraEffects(void);
|
---|
37 | ~CameraEffects(void);
|
---|
38 |
|
---|
39 | void OnFrameRender( D3DXMATRIXA16& mView, D3DXMATRIXA16& mProj );
|
---|
40 |
|
---|
41 | void SetupFilterKernel();
|
---|
42 | void OnCreateDevice( IDirect3DDevice9* pd3dDevice);
|
---|
43 | void OnDestroyDevice();
|
---|
44 | void OnResetDevice(D3DSURFACE_DESC* pBackBufferDesc);
|
---|
45 | void OnLostDevice();
|
---|
46 | void SetWorldViewProj(D3DXMATRIXA16& mWorld, D3DXMATRIXA16& mView, D3DXMATRIXA16& mProj );
|
---|
47 |
|
---|
48 | void addUiParams(Parameters& p);
|
---|
49 | void changeMesh(int meshid);
|
---|
50 |
|
---|
51 | void CreateBumpMap(bool createMipMaps);
|
---|
52 | };
|
---|
Note: See
TracBrowser
for help on using the repository browser.