aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/cube_view.h5
-rw-r--r--examples/demo_utils.h6
-rw-r--r--examples/rects.h5
-rw-r--r--examples/shader_utils.h5
4 files changed, 18 insertions, 3 deletions
diff --git a/examples/cube_view.h b/examples/cube_view.h
index cf930a4..87bf3b5 100644
--- a/examples/cube_view.h
+++ b/examples/cube_view.h
@@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#ifndef EXAMPLES_CUBE_VIEW_H
+#define EXAMPLES_CUBE_VIEW_H
+
#define GL_SILENCE_DEPRECATION 1
#include "demo_utils.h"
@@ -129,3 +132,5 @@ displayCube(PuglView* const view,
glDrawArrays(GL_LINES, 0, 8);
glDisableClientState(GL_VERTEX_ARRAY);
}
+
+#endif // EXAMPLES_CUBE_VIEW_H
diff --git a/examples/demo_utils.h b/examples/demo_utils.h
index 925753a..9057a32 100644
--- a/examples/demo_utils.h
+++ b/examples/demo_utils.h
@@ -14,8 +14,8 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#ifndef PUGL_DEMO_UTILS_H
-#define PUGL_DEMO_UTILS_H
+#ifndef EXAMPLES_DEMO_UTILS_H
+#define EXAMPLES_DEMO_UTILS_H
#include "pugl/pugl.h"
@@ -123,4 +123,4 @@ puglPrintFps(const PuglWorld* world,
}
}
-#endif // PUGL_DEMO_UTILS_H
+#endif // EXAMPLES_DEMO_UTILS_H
diff --git a/examples/rects.h b/examples/rects.h
index f760226..f53698c 100644
--- a/examples/rects.h
+++ b/examples/rects.h
@@ -22,6 +22,9 @@
many 2D rectangles.
*/
+#ifndef EXAMPLES_RECTS_H
+#define EXAMPLES_RECTS_H
+
#include <math.h>
#include <stddef.h>
@@ -80,3 +83,5 @@ moveRect(Rect* const rect,
(cosf((float)time * rect->size[1] / 64.0f + normal) + 1.0f) /
2.0f;
}
+
+#endif // EXAMPLES_RECTS_H
diff --git a/examples/shader_utils.h b/examples/shader_utils.h
index 10a7ace..217ba47 100644
--- a/examples/shader_utils.h
+++ b/examples/shader_utils.h
@@ -14,6 +14,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#ifndef EXAMPLES_SHADER_UTILS_H
+#define EXAMPLES_SHADER_UTILS_H
+
#include "glad/glad.h"
#include <stdio.h>
@@ -100,3 +103,5 @@ compileProgram(const char* headerSource,
return program;
}
+
+#endif // EXAMPLES_SHADER_UTILS_H