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

Revision 1378, 874 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 TerrainRenderer :
6        public Renderer
7{
8public:
9        TerrainRenderer(void);
10        ~TerrainRenderer(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        void setEffect(ID3DXEffect* effect);
20
21        virtual bool isLowerThan(Renderer* renderer);
22private:
23        ID3DXEffect* TerrainEffect;
24
25        D3DXHANDLE ShaderTechHandle;     
26        D3DXHANDLE ShaderTechHandleRay;
27        D3DXHANDLE ShaderTechHandleDepth;
28        D3DXHANDLE WorldViewProjectionHandle;
29        D3DXHANDLE WorldViewHandle;
30        D3DXHANDLE FarPlaneMinusNearPlaneHandle;
31       
32        D3DXMATRIX worldViewMat;
33        D3DXMATRIX worldViewProjMat;
34};
Note: See TracBrowser for help on using the repository browser.