FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
HelloT5Cube/main.cpp at master · patrickdown/HelloT5Cube · GitHub
patrickdown
/
HelloT5Cube
Public
Notifications
You must be signed in to change notification settings
Fork
2
Star
5
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
HelloT5Cube
/
main.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
43 lines (34 loc) · 954 Bytes
Breadcrumbs
HelloT5Cube
/
main.cpp
Copy path
File metadata and controls
43 lines (34 loc) · 954 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
();
}
}
Back
|
FazBrowse Home
|
New Git URL