aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/cube_view.h26
-rw-r--r--examples/pugl_embed_demo.c8
2 files changed, 17 insertions, 17 deletions
diff --git a/examples/cube_view.h b/examples/cube_view.h
index bdef1f1..27d1a44 100644
--- a/examples/cube_view.h
+++ b/examples/cube_view.h
@@ -42,7 +42,7 @@ static const float cubeStripVertices[] = {
-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
+ 1.0f, 1.0f, -1.0f, // Back top right
};
static const float cubeStripColorVertices[] = {
@@ -59,7 +59,7 @@ static const float cubeStripColorVertices[] = {
0.25f, 0.25f, 0.25f, // Back bottom left
0.75f, 0.25f, 0.25f, // Back bottom right
0.25f, 0.75f, 0.25f, // Back top left
- 0.75f, 0.75f, 0.25f // Back top right
+ 0.75f, 0.75f, 0.25f, // Back top right
};
static const float cubeFrontLineLoop[] = {
@@ -87,7 +87,7 @@ static const float cubeBackLineLoopColors[] = {
0.25f, 0.75f, 0.25f, // Back top left
0.75f, 0.75f, 0.25f, // Back top right
0.75f, 0.25f, 0.25f, // Back bottom right
- 0.25f, 0.25f, 0.25f // Back bottom left
+ 0.25f, 0.25f, 0.25f, // Back bottom left
};
static const float cubeSideLines[] = {
@@ -97,24 +97,24 @@ static const float cubeSideLines[] = {
-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 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
+ 1.0f, -1.0f, 1.0f, // Front bottom right
+ 1.0f, -1.0f, -1.0f, // Back bottom right
};
static const float cubeSideLineColors[] = {
- 0.25f, 0.75f, 0.75f, // Front top left
- 0.25f, 0.75f, 0.25f, // Back top left
+ 0.25f, 0.75f, 0.75f, // Front top left
+ 0.25f, 0.75f, 0.25f, // Back top left
- 0.25f, 0.25f, 0.75f, // Front bottom left
+ 0.25f, 0.25f, 0.75f, // Front bottom left
0.25f, 0.25f, 0.25f, // Back bottom left
- 0.75f, 0.75f, 0.75f, // Front top right
- 0.75f, 0.75f, 0.25f, // Back top right
+ 0.75f, 0.75f, 0.75f, // Front top right
+ 0.75f, 0.75f, 0.25f, // Back top right
- 0.75f, 0.25f, 0.75f, // Front bottom right
+ 0.75f, 0.25f, 0.75f, // Front bottom right
0.75f, 0.25f, 0.25f, // Back bottom right
};
diff --git a/examples/pugl_embed_demo.c b/examples/pugl_embed_demo.c
index 79e7505..677b94f 100644
--- a/examples/pugl_embed_demo.c
+++ b/examples/pugl_embed_demo.c
@@ -57,10 +57,10 @@ static const float backgroundVertices[] = {
};
static const float backgroundColorVertices[] = {
- 0.25f, 0.75f, 0.25f, // Top left
- 0.75f, 0.75f, 0.25f, // Top right
- 0.25f, 0.25f, 0.25f, // Bottom left
- 0.75f, 0.25f, 0.25f, // Bottom right
+ 0.25f, 0.25f, 0.25f, // Top left
+ 0.25f, 0.50f, 0.25f, // Top right
+ 0.25f, 0.50f, 0.25f, // Bottom left
+ 0.25f, 0.75f, 0.5f, // Bottom right
};
// clang-format on