Rise
The Vieneo Province
Loading...
Searching...
No Matches
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>
7#include "../Logger.h"
8#include "ShipSurfaceLights.h"
9#include "ThrustConeRender.h"
10
11#ifdef _DEBUG
12//#define skipAnimations
13//#define skipDocks
14//#define skipVehicles
15//#define skipBuildings
16//#define skipRTS
17//#define skipTerrain
18#endif
19
20class Viewscreen;
21
23{
24public:
25 renderer(Viewscreen* ptr);
26
27 void LoadTextures(Rendering::RenderDevice* pd3dDevice, short* stage, short* instage);
28 void RenderDocks(Rendering::RenderDevice* pd3dDevice, const RiseMath::Vector3* Xsunlight);
29 void RenderShips(Rendering::RenderDevice* pd3dDevice, const RiseMath::Vector3* Xsunlight,
30 ThrustConeRender::Pass pass=ThrustConeRender::Pass::All, bool attenuateThrust=false);
31 void RenderLights(Rendering::RenderDevice* pd3dDevice, const double* fTime);
33 void SetSceneShipLights(const GeometryBounds& bounds,const RiseMath::Matrix& world);
35
36private:
40 uint32_t sceneLightMask = UINT32_MAX;
41
42 char msg[199];
45 short s, r, t;
46
47 static short count;
48 static float timepassed;
49
50 //This could go wrong
52 //This could go wrong
53};
HRESULT(WINAPI *CUniBuffer::_ScriptApplyDigitSubstitution)(const SCRIPT_DIGITSUBSTITUTE *
void SetSceneShipLights(const GeometryBounds &bounds, const RiseMath::Matrix &world)
void ClearSceneShipLights()
short t
Definition renderer.h:45
ShipSurfaceLights::Frame surfaceLights
Definition renderer.h:39
uint32_t sceneLightMask
Definition renderer.h:40
static short count
Definition renderer.h:47
Logger * logger
Definition renderer.h:38
RiseMath::Color tempcolor
Definition renderer.h:43
void PrepareShipSurfaceLights()
void RenderShips(Rendering::RenderDevice *pd3dDevice, const RiseMath::Vector3 *Xsunlight, ThrustConeRender::Pass pass=ThrustConeRender::Pass::All, bool attenuateThrust=false)
Viewscreen * viewscreen
Definition renderer.h:37
renderer(Viewscreen *ptr)
Definition renderer.cpp:21
void RenderLights(Rendering::RenderDevice *pd3dDevice, const double *fTime)
char msg[199]
Definition renderer.h:42
static float timepassed
Definition renderer.h:48
short r
Definition renderer.h:45
HRESULT hr
Definition renderer.h:51
void LoadTextures(Rendering::RenderDevice *pd3dDevice, short *stage, short *instage)
Definition renderer.cpp:27
void RenderDocks(Rendering::RenderDevice *pd3dDevice, const RiseMath::Vector3 *Xsunlight)
short s
Definition renderer.h:45
Rendering::Light templight
Definition renderer.h:44