summaryrefslogtreecommitdiff
path: root/examples/cube.c
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-10-26 23:23:19 +1100
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-10-26 23:23:19 +1100
commit90125f6809d6c2a9e4d72b6c3846c8b378d32261 (patch)
tree2f40a1d4a281f76f2ed211b9bce0f94064d913e6 /examples/cube.c
parent43bee361397315c7105b7214316325b185135331 (diff)
adding file doc comments
Diffstat (limited to 'examples/cube.c')
-rw-r--r--examples/cube.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/examples/cube.c b/examples/cube.c
index cf64370..f107e75 100644
--- a/examples/cube.c
+++ b/examples/cube.c
@@ -29,13 +29,13 @@ void draw() {
// print debug info for one frame
static bool printed = false;
- if (!printed) {
- printf("\nTo Center:\n");
- for (int i = 0; i < 16; i += 4) {
- printf("%f %f %f %f\n", to_center.data[i], to_center.data[i + 1], to_center.data[i + 2], to_center.data[i + 3]);
- }
- printed = true;
- }
+ // if (!printed) {
+ // printf("\nTo Center:\n");
+ // for (int i = 0; i < 16; i += 4) {
+ // printf("%f %f %f %f\n", to_center.data[i], to_center.data[i + 1], to_center.data[i + 2], to_center.data[i + 3]);
+ // }
+ // printed = true;
+ // }
// first move to center, then rotate, then move back
mat4 cube_transform = mat4_mult(from_center, mat4_mult(rotation, to_center));
@@ -63,7 +63,6 @@ void draw() {
}
int main() {
-
core_bringup("Celeritas Example: Triangle", NULL);
// create rendering pipeline