source: GTP/trunk/App/Games/Jungle_Rumble/src/OceanRenderer.h @ 1378

Revision 1378, 982 bytes checked in by giegl, 18 years ago (diff)

GTPD - Jungle Rumble - integrate into GTP SVN structure

Line 
1#pragma once
2#include "renderer.h"
3#include "Object3d.h"
4
5class OceanRenderer :
6        public Renderer
7{
8public:
9        OceanRenderer(void);
10        ~OceanRenderer(void);
11
12        virtual void init();
13        virtual void render();
14
15        virtual void OnLostDevice( void* pUserContext );
16        virtual void OnDestroyDevice( void* pUserContext );
17        virtual HRESULT OnResetDevice( IDirect3DDevice9* pd3dDevice, const D3DSURFACE_DESC* pBackBufferSurfaceDesc, void* pUserContext );
18
19        virtual bool isLowerThan(Renderer* renderer);
20        void setEffect(ID3DXEffect* effect);
21
22private:
23        ID3DXEffect* OceanEffect;
24
25        D3DXHANDLE ShaderTechHandle;
26        D3DXHANDLE ShaderTechHandleDepth;
27        D3DXHANDLE WorldHandle;
28        D3DXHANDLE WorldViewHandle;
29        D3DXHANDLE WorldViewProjectionHandle;
30        D3DXHANDLE ViewInverseHandle;
31        D3DXHANDLE TimeHandle;
32        D3DXHANDLE RayHandle;
33        D3DXHANDLE FarPlaneMinusNearPlaneHandle;
34
35        D3DXMATRIX worldViewMat;
36        D3DXMATRIX worldViewProjMat;
37        D3DXMATRIX viewInverseMatrix;
38
39        float angle;
40};
Note: See TracBrowser for help on using the repository browser.