diff options
author | David Robillard <d@drobilla.net> | 2020-10-04 17:35:26 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-04 17:36:05 +0200 |
commit | 24949b8218a149b8030a85129c6c82c5427ef640 (patch) | |
tree | 9decf862a3cca22727da09c4ab78dcd05e3d2d1d /examples/demo_utils.h | |
parent | 4531da003aa3eae02a507fc851e904b3273b7d97 (diff) | |
download | pugl-24949b8218a149b8030a85129c6c82c5427ef640.tar.gz pugl-24949b8218a149b8030a85129c6c82c5427ef640.tar.bz2 pugl-24949b8218a149b8030a85129c6c82c5427ef640.zip |
Move cube vertex data to the file where it is actually used
Diffstat (limited to 'examples/demo_utils.h')
-rw-r--r-- | examples/demo_utils.h | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/examples/demo_utils.h b/examples/demo_utils.h index 854aa94..925753a 100644 --- a/examples/demo_utils.h +++ b/examples/demo_utils.h @@ -31,55 +31,6 @@ typedef struct { typedef float vec4[4]; typedef vec4 mat4[4]; -// clang-format off - -static const float cubeStripVertices[] = { - -1.0f, 1.0f, 1.0f, // Front top left - 1.0f, 1.0f, 1.0f, // Front top right - -1.0f, -1.0f, 1.0f, // Front bottom left - 1.0f, -1.0f, 1.0f, // Front bottom right - 1.0f, -1.0f, -1.0f, // Back bottom right - 1.0f, 1.0f, 1.0f, // Front top right - 1.0f, 1.0f, -1.0f, // Back top right - -1.0f, 1.0f, 1.0f, // Front top left - -1.0f, 1.0f, -1.0f, // Back top left - -1.0f, -1.0f, 1.0f, // Front bottom left - -1.0f, -1.0f, -1.0f, // Back bottom left - 1.0f, -1.0f, -1.0f, // Back bottom right - -1.0f, 1.0f, -1.0f, // Back top left - 1.0f, 1.0f, -1.0f // Back top right -}; - -static const float cubeFrontLineLoop[] = { - -1.0f, 1.0f, 1.0f, // Front top left - 1.0f, 1.0f, 1.0f, // Front top right - 1.0f, -1.0f, 1.0f, // Front bottom right - -1.0f, -1.0f, 1.0f, // Front bottom left -}; - -static const float cubeBackLineLoop[] = { - -1.0f, 1.0f, -1.0f, // Back top left - 1.0f, 1.0f, -1.0f, // Back top right - 1.0f, -1.0f, -1.0f, // Back bottom right - -1.0f, -1.0f, -1.0f, // Back bottom left -}; - -static const float cubeSideLines[] = { - -1.0f, 1.0f, 1.0f, // Front top left - -1.0f, 1.0f, -1.0f, // Back top left - - -1.0f, -1.0f, 1.0f, // Front bottom left - -1.0f, -1.0f, -1.0f, // Back bottom left - - 1.0f, 1.0f, 1.0f, // Front top right - 1.0f, 1.0f, -1.0f, // Back top right - - 1.0f, -1.0f, 1.0f, // Front bottom right - 1.0f, -1.0f, -1.0f, // Back bottom right -}; - -// clang-format on - static inline void mat4Identity(mat4 m) { |