Rise
The Vieneo Province
renderer.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <WinSock2.h>
4 #include <WS2tcpip.h>
5 #include <Windows.h>
6 #include "DXUT.h"
7 #include "../Logger.h"
8 
9 #ifdef _DEBUG
10 #define skipAnimations
11 #define skipDocks
12 //#define skipVehicles
13 //#define skipBuildings
14 //#define skipRTS
15 //#define skipTerrain
16 #endif
17 
18 class Viewscreen;
19 
20 class renderer
21 {
22 public:
23  renderer(Viewscreen* ptr);
24 
25  void LoadTextures(IDirect3DDevice9* pd3dDevice, short* stage, short* instage);
26  void RenderBuildings(IDirect3DDevice9* pd3dDevice, double* fTime, bool drawTransparancy);
27  void RenderDocks(IDirect3DDevice9* pd3dDevice, const D3DXVECTOR3* Xsunlight);
28  void RenderShips(IDirect3DDevice9* pd3dDevice, const D3DXVECTOR3* Xsunlight);
29  void RenderLights(IDirect3DDevice9* pd3dDevice, const double* fTime);
30 
31 public:
32  short u, v;
33 
34  D3DXVECTOR2 temp;
35 
36 private:
39 
40  char msg[199];
41  D3DXCOLOR tempcolor;
42  D3DLIGHT9 templight;
43  short s, r, t;
44 
45  static short count;
46  static float timepassed;
47 
48  //This could go wrong
49  HRESULT hr;
50  //This could go wrong
51 };
short s
Definition: renderer.h:43
void RenderShips(IDirect3DDevice9 *pd3dDevice, const D3DXVECTOR3 *Xsunlight)
Definition: renderer.cpp:3375
Logger * logger
Definition: renderer.h:38
Definition: Logger.h:9
void RenderDocks(IDirect3DDevice9 *pd3dDevice, const D3DXVECTOR3 *Xsunlight)
Definition: renderer.cpp:2890
short u
Definition: renderer.h:32
char msg[199]
Definition: renderer.h:40
short v
Definition: renderer.h:32
void RenderLights(IDirect3DDevice9 *pd3dDevice, const double *fTime)
Definition: renderer.cpp:3552
static float timepassed
Definition: renderer.h:46
D3DXVECTOR2 temp
Definition: renderer.h:34
renderer(Viewscreen *ptr)
Definition: renderer.cpp:13
short t
Definition: renderer.h:43
void RenderBuildings(IDirect3DDevice9 *pd3dDevice, double *fTime, bool drawTransparancy)
Definition: renderer.cpp:3145
short r
Definition: renderer.h:43
D3DLIGHT9 templight
Definition: renderer.h:42
Viewscreen * viewscreen
Definition: renderer.h:37
static short count
Definition: renderer.h:45
HRESULT hr
Definition: renderer.h:49
void LoadTextures(IDirect3DDevice9 *pd3dDevice, short *stage, short *instage)
Definition: renderer.cpp:19
D3DXCOLOR tempcolor
Definition: renderer.h:41