| 1 |
/* |
| 2 |
* Copyright (c) 2015-2016 The Khronos Group Inc. |
| 3 |
* Copyright (c) 2015-2016 Valve Corporation |
| 4 |
* Copyright (c) 2015-2016 LunarG, Inc. |
| 5 |
* |
| 6 |
* Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 |
* you may not use this file except in compliance with the License. |
| 8 |
* You may obtain a copy of the License at |
| 9 |
* |
| 10 |
* http://www.apache.org/licenses/LICENSE-2.0 |
| 11 |
* |
| 12 |
* Unless required by applicable law or agreed to in writing, software |
| 13 |
* distributed under the License is distributed on an "AS IS" BASIS, |
| 14 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 |
* See the License for the specific language governing permissions and |
| 16 |
* limitations under the License. |
| 17 |
* |
| 18 |
* Author: Chia-I Wu <[email protected]> |
| 19 |
* Author: Courtney Goeltzenleuchter <[email protected]> |
| 20 |
* Author: Ian Elliott <[email protected]> |
| 21 |
* Author: Ian Elliott <[email protected]> |
| 22 |
* Author: Jon Ashburn <[email protected]> |
| 23 |
* Author: Gwan-gyeong Mun <[email protected]> |
| 24 |
* Author: Tony Barbour <[email protected]> |
| 25 |
* Author: Bill Hollings <[email protected]> |
| 26 |
*/ |
| 27 |
|
| 28 |
#ifndef CUBE_H |
| 29 |
#define CUBE_H |
| 30 |
|
| 31 |
// clang-format off |
| 32 |
static const float cube[] = { |
| 33 |
-1.0f,-1.0f,-1.0f, // -X side |
| 34 |
-1.0f,-1.0f, 1.0f, |
| 35 |
-1.0f, 1.0f, 1.0f, |
| 36 |
-1.0f, 1.0f, 1.0f, |
| 37 |
-1.0f, 1.0f,-1.0f, |
| 38 |
-1.0f,-1.0f,-1.0f, |
| 39 |
|
| 40 |
-1.0f,-1.0f,-1.0f, // -Z side |
| 41 |
1.0f, 1.0f,-1.0f, |
| 42 |
1.0f,-1.0f,-1.0f, |
| 43 |
-1.0f,-1.0f,-1.0f, |
| 44 |
-1.0f, 1.0f,-1.0f, |
| 45 |
1.0f, 1.0f,-1.0f, |
| 46 |
|
| 47 |
-1.0f,-1.0f,-1.0f, // -Y side |
| 48 |
1.0f,-1.0f,-1.0f, |
| 49 |
1.0f,-1.0f, 1.0f, |
| 50 |
-1.0f,-1.0f,-1.0f, |
| 51 |
1.0f,-1.0f, 1.0f, |
| 52 |
-1.0f,-1.0f, 1.0f, |
| 53 |
|
| 54 |
-1.0f, 1.0f,-1.0f, // +Y side |
| 55 |
-1.0f, 1.0f, 1.0f, |
| 56 |
1.0f, 1.0f, 1.0f, |
| 57 |
-1.0f, 1.0f,-1.0f, |
| 58 |
1.0f, 1.0f, 1.0f, |
| 59 |
1.0f, 1.0f,-1.0f, |
| 60 |
|
| 61 |
1.0f, 1.0f,-1.0f, // +X side |
| 62 |
1.0f, 1.0f, 1.0f, |
| 63 |
1.0f,-1.0f, 1.0f, |
| 64 |
1.0f,-1.0f, 1.0f, |
| 65 |
1.0f,-1.0f,-1.0f, |
| 66 |
1.0f, 1.0f,-1.0f, |
| 67 |
|
| 68 |
-1.0f, 1.0f, 1.0f, // +Z side |
| 69 |
-1.0f,-1.0f, 1.0f, |
| 70 |
1.0f, 1.0f, 1.0f, |
| 71 |
-1.0f,-1.0f, 1.0f, |
| 72 |
1.0f,-1.0f, 1.0f, |
| 73 |
1.0f, 1.0f, 1.0f, |
| 74 |
|
| 75 |
0.0f, 1.0f, // -X side |
| 76 |
1.0f, 1.0f, |
| 77 |
1.0f, 0.0f, |
| 78 |
1.0f, 0.0f, |
| 79 |
0.0f, 0.0f, |
| 80 |
0.0f, 1.0f, |
| 81 |
|
| 82 |
1.0f, 1.0f, // -Z side |
| 83 |
0.0f, 0.0f, |
| 84 |
0.0f, 1.0f, |
| 85 |
1.0f, 1.0f, |
| 86 |
1.0f, 0.0f, |
| 87 |
0.0f, 0.0f, |
| 88 |
|
| 89 |
1.0f, 0.0f, // -Y side |
| 90 |
1.0f, 1.0f, |
| 91 |
0.0f, 1.0f, |
| 92 |
1.0f, 0.0f, |
| 93 |
0.0f, 1.0f, |
| 94 |
0.0f, 0.0f, |
| 95 |
|
| 96 |
1.0f, 0.0f, // +Y side |
| 97 |
0.0f, 0.0f, |
| 98 |
0.0f, 1.0f, |
| 99 |
1.0f, 0.0f, |
| 100 |
0.0f, 1.0f, |
| 101 |
1.0f, 1.0f, |
| 102 |
|
| 103 |
1.0f, 0.0f, // +X side |
| 104 |
0.0f, 0.0f, |
| 105 |
0.0f, 1.0f, |
| 106 |
0.0f, 1.0f, |
| 107 |
1.0f, 1.0f, |
| 108 |
1.0f, 0.0f, |
| 109 |
|
| 110 |
0.0f, 0.0f, // +Z side |
| 111 |
0.0f, 1.0f, |
| 112 |
1.0f, 0.0f, |
| 113 |
0.0f, 1.0f, |
| 114 |
1.0f, 1.0f, |
| 115 |
1.0f, 0.0f, |
| 116 |
}; |
| 117 |
// clang-format on |
| 118 |
|
| 119 |
#endif |