-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.cpp
More file actions
43 lines (34 loc) · 954 Bytes
/
main.cpp
File metadata and controls
43 lines (34 loc) · 954 Bytes
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
#include <iostream>
#include <cstring>
#include "HelloT5Cube.h"
int main(int argc, char* argv[])
{
bool isSuccessfulLaunch = false;
{
std::cout << "Command line options: " << std::endl;
std::cout << "multiview - Use multiview rendering and submit texture array to T5" << std::endl;
std::cout << "debug - Enable GL_DEBUG_OUTPUT" << std::endl;
bool multiview = false;
bool copyTextures = false;
bool glDebug = false;
for(int idx = 1; idx < argc; ++idx) {
if(strncmp(argv[idx], "multiview", 9) == 0) {
multiview = true;
copyTextures = false;
}
if(strncmp(argv[idx], "multiview-copy", 14) == 0) {
multiview = true;
copyTextures = true;
}
if(strncmp(argv[idx], "debug", 5) == 0) {
glDebug = true;
}
}
if(argc > 1) {
}
HelloT5Cube hello(1216, 768, "Hello T5 Cube", multiview, copyTextures, glDebug);
isSuccessfulLaunch = hello.Initialize();
if(isSuccessfulLaunch)
hello.Run();
}
}