-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhda_hdrdemoapp.cpp
More file actions
63 lines (47 loc) · 1.54 KB
/
Copy pathhda_hdrdemoapp.cpp
File metadata and controls
63 lines (47 loc) · 1.54 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
#include "hda_hdrdemoapp.hpp"
using namespace std;
void HdrDemoApp::runApp() {
device.initGpu();
swapchain.initSwapchain();
pipeline.initPipeline();
builder.initBuilder();
cout << "\n\nrunApp(): Application started >> >> >>\n";
//HdaWindow mainWindow
// main loop of application, here the images are rendered one by one
while (!hdaAppWindow.glfwShouldClose()) {
glfwPollEvents();
if (hdaAppWindow.getKeyPressedIFlag() == true) {
showUsage();
hdaAppWindow.setKeyPressedIFlag();
}
builder.render();
}
cout << "\nrunApp(): Application end.\n";
// waiting for working done
if (device.getDevice())
device.getDevice().waitIdle();
}
void HdrDemoApp::showUsage() {
cout << "\n\n- - - APP USAGE - - -\n";
cout << "To list these keyboard controls in the console, press\n";
cout << "the >I< key in the app whenever you need to.\n";
cout << "\n";
cout << "The most interesting key is X, start with it first\n";
cout << "because it activates the HDR view.\n";
cout << "\n";
cout << "X turn ON/OFF the HDR function\n";
cout << "\n";
cout << "W turn the camera up\n";
cout << "A turn the camera to the left\n";
cout << "S turn the camera down\n";
cout << "D turn the camera to the right\n";
cout << "E move forward\n";
cout << "Q move backwards\n";
cout << "\n";
cout << "O turn on the pointlights\n";
cout << "\n";
cout << "M switch the TMO\n";
cout << "\n";
cout << "C higher exposure\n";
cout << "Y lower exposure\n\n";
}