Turn off scene node transform gizmos

master
outfrost 2020-06-03 22:32:37 +02:00
parent 59a4bb2a20
commit 8db797f0a1
2 changed files with 5 additions and 1 deletions

View File

@ -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)

View 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) {