]> git.lizzy.rs Git - shadowclad.git/commitdiff
Turn off scene node transform gizmos
authoroutfrost <kotlet.bahn@gmail.com>
Wed, 3 Jun 2020 20:32:37 +0000 (22:32 +0200)
committeroutfrost <kotlet.bahn@gmail.com>
Wed, 3 Jun 2020 20:33:40 +0000 (22:33 +0200)
Makefile
src/engine/render.c

index cf092585b16c58291fd53ca35f79356ea8b39209..79a7f48b4e8593b5d42deebd9ef9bf8610fcc93c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ BUILDDIR ?= target/$(PLATFORM)
 SRCDIR ?= src
 
 CPPFLAGS ::= -iquotesrc/ $(CPPFLAGS)
-CFLAGS ::= -g -std=c99 -Wall -Wextra -Wpedantic -Werror $(CFLAGS)
+CFLAGS ::= -g -std=c99 -Wall -Wextra -Wpedantic -Werror -Wno-error=unused-function $(CFLAGS)
 LDFLAGS ::= $(LDFLAGS)
 LDLIBS ::= -lGL -lGLEW -lglut -lassimp $(LDLIBS)
 
index 33b162516a1324a64c5e9f686e456d02f393d72d..bd4456bd55637388e578991d5288c79510303527 100644 (file)
@@ -6,6 +6,8 @@
 #include "geometry.h"
 #include "performance.h"
 
+#define RENDER_DEBUG_ 0
+
 float viewportAspectRatio = 1.0f;
 const Scene* cameraAnchor;
 
@@ -66,7 +68,9 @@ static void renderScene(const Scene* scene, const Transform baseTransform) {
        glLoadTransposeMatrixf((const GLfloat*) &transform);
 
        glDisable(GL_LIGHTING);
+#if RENDER_DEBUG_
        drawAxes();
+#endif // RENDER_DEBUG_
        glEnable(GL_LIGHTING);
 
        if (scene->solid) {