forked from LukasBanana/LLGL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RunExamplesLinux.sh
executable file
·84 lines (82 loc) · 2.1 KB
/
RunExamplesLinux.sh
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
#!/bin/bash
BUILD_DIR="build/build"
if [ "$#" -eq 1 ]; then
BUILD_DIR=$1
elif [ -f "build/build/Example_HelloTriangle" ]; then
BUILD_DIR="build/build"
elif [ -f "bin/x64/Linux/Example_HelloTriangle" ]; then
BUILD_DIR="bin/x64/Linux"
else
echo "error: build folder not found: $BUILD_DIR"
exit 1
fi
PS3='select example: '
options=(
"Hello Triangle"
"Tessellation"
"Texturing"
"Queries"
"Render Target"
"Multi Context"
"Buffer Array"
"Compute Shader"
"Stream Output"
"Instancing"
"Post Processing"
"Shadow Mapping"
"Animation"
"Stencil Buffer"
"Volume Rendering"
)
select opt in "${options[@]}"
do
case $opt in
"${options[0]}")
(cd examples/Cpp/HelloTriangle; ../../../$BUILD_DIR/Example_HelloTriangle)
;;
"${options[1]}")
(cd examples/Cpp/Tessellation; ../../../$BUILD_DIR/Example_Tessellation)
;;
"${options[2]}")
(cd examples/Cpp/Texturing; ../../../$BUILD_DIR/Example_Texturing)
;;
"${options[3]}")
(cd examples/Cpp/Queries; ../../../$BUILD_DIR/Example_Queries)
;;
"${options[4]}")
(cd examples/Cpp/RenderTarget; ../../../$BUILD_DIR/Example_RenderTarget)
;;
"${options[5]}")
(cd examples/Cpp/MultiContext; ../../../$BUILD_DIR/Example_MultiContext)
;;
"${options[6]}")
(cd examples/Cpp/BufferArray; ../../../$BUILD_DIR/Example_BufferArray)
;;
"${options[7]}")
(cd examples/Cpp/ComputeShader; ../../../$BUILD_DIR/Example_ComputeShader)
;;
"${options[8]}")
(cd examples/Cpp/StreamOutput; ../../../$BUILD_DIR/Example_StreamOutput)
;;
"${options[9]}")
(cd examples/Cpp/Instancing; ../../../$BUILD_DIR/Example_Instancing)
;;
"${options[10]}")
(cd examples/Cpp/PostProcessing; ../../../$BUILD_DIR/Example_PostProcessing)
;;
"${options[11]}")
(cd examples/Cpp/ShadowMapping; ../../../$BUILD_DIR/Example_ShadowMapping)
;;
"${options[12]}")
(cd examples/Cpp/Animation; ../../../$BUILD_DIR/Example_Animation)
;;
"${options[13]}")
(cd examples/Cpp/StencilBuffer; ../../../$BUILD_DIR/Example_StencilBuffer)
;;
"${options[14]}")
(cd examples/Cpp/VolumeRendering; ../../../$BUILD_DIR/Example_VolumeRendering)
;;
*)
echo "invalid selection";;
esac
done