summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-10-18 00:23:30 +1100
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-10-18 00:23:30 +1100
commit5234133f2d55dc7f24eaa63b86e3952decaaba91 (patch)
tree01b4732ff6b1686f62cedcab5afe48092094784d /examples
parentdf81a840a5276c35df5f35d55610f1bf31487153 (diff)
chore: format
Diffstat (limited to 'examples')
-rw-r--r--examples/triangle.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/examples/triangle.c b/examples/triangle.c
index e5cf92d..7770fd1 100644
--- a/examples/triangle.c
+++ b/examples/triangle.c
@@ -16,13 +16,10 @@ typedef struct VertexData {
} VertexData;
VertexData squareVertices[] = {
- {{-0.5, -0.5, 0.5, 1.0f}, {0.0f, 0.0f}, 0.0, 0.0},
- {{-0.5, 0.5, 0.5, 1.0f}, {0.0f, 1.0f}, 0.0, 0.0},
- {{ 0.5, 0.5, 0.5, 1.0f}, {1.0f, 1.0f}, 0.0, 0.0},
- {{-0.5, -0.5, 0.5, 1.0f}, {0.0f, 0.0f}, 0.0, 0.0},
- {{ 0.5, 0.5, 0.5, 1.0f}, {1.0f, 1.0f}, 0.0, 0.0},
- {{ 0.5, -0.5, 0.5, 1.0f}, {1.0f, 0.0f}, 0.0, 0.0}
- };
+ { { -0.5, -0.5, 0.5, 1.0f }, { 0.0f, 0.0f }, 0.0, 0.0 }, { { -0.5, 0.5, 0.5, 1.0f }, { 0.0f, 1.0f }, 0.0, 0.0 },
+ { { 0.5, 0.5, 0.5, 1.0f }, { 1.0f, 1.0f }, 0.0, 0.0 }, { { -0.5, -0.5, 0.5, 1.0f }, { 0.0f, 0.0f }, 0.0, 0.0 },
+ { { 0.5, 0.5, 0.5, 1.0f }, { 1.0f, 1.0f }, 0.0, 0.0 }, { { 0.5, -0.5, 0.5, 1.0f }, { 1.0f, 0.0f }, 0.0, 0.0 }
+};
pipeline_handle draw_pipeline;
buf_handle tri_vert_buffer;