-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDxManager.h
More file actions
99 lines (62 loc) · 1.93 KB
/
DxManager.h
File metadata and controls
99 lines (62 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#pragma once
#include <d3d10.h>
#include <d3dx10.h>
#include <windows.h>
#include "resource.h"
#include "Viewpoint.h"
#include "Polychora.h"
#include <thread>
#include "ScreenSpaceFxProcessor.h"
#include "LoaderEffect.h"
#include <memory>
#include <map>
#include "ScreenSaverModeHandler.h"
typedef std::function<void(float,float)> EvoFunctor;
class CDxManager
{
public:
CDxManager(HWND hwnd,CScreenSaverModeHandler * ssMode);
~CDxManager(void);
HRESULT InitDevice();
void CleanupDevice();
void Render();
void RenderLoadingStub(float time);
void RenderText();
EvoFunctor PickNextEvolutorFrom(const std::vector<EvoFunctor> & evoFnPool);
private:
std::map<const std::vector<EvoFunctor> *,int> _pickerSeeds;
public:
D3D10_DRIVER_TYPE driverType;
ID3D10Device* device;
IDXGISwapChain* swapChain;
ID3D10RenderTargetView* renderTargetView;
ID3D10Texture2D* depthStencil;
ID3D10DepthStencilView* depthStencilView;
ID3D10Effect* effectRender4D;
ID3D10ShaderResourceView* noiseTexture;
ID3D10ShaderResourceView* depthShaderView;
ID3D10ShaderResourceView* envMapSRV;
CViewpoint viewpoint;
LoaderEffect * loaderEffect;
CPolychora * polychora;
CScreenSpaceFxProcessor ssfxp;
std::thread * loader;
HWND windowHandle;
UINT WindowWidth;
UINT WindowHeight;
std::vector<EvoFunctor> ComplexEvolutionFunctions;
std::vector<EvoFunctor> PlainEvolutionFunctions;
std::function<void(float,float)> EvolutionFunction;
private:
void Evolve_ChaoticPeriodicPersistent( float timeAbs,float timeDelta );
void Evolve_Weierstrass( float timeAbs,float timeDelta );
void Evolve_Plain( float timeAbs,float timeDelta );
float plain_acc_time;
std::vector<std::pair<int,int> > _rotationPlanesShuffled;
float envRotationSeed;
float envRotationDir;
float rotationPhase3d;
public:
bool UseVSync;
bool isLoaded;
};