From b614979c7aa3fbc0d04c7f217ea835f7e67a312d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Bastian?= Date: Tue, 6 Feb 2018 22:15:35 +0100 Subject: [PATCH] GlutRender.cpp: fix tab indentation --- render/GlutRender.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/render/GlutRender.cpp b/render/GlutRender.cpp index fdc4fae..31268d6 100644 --- a/render/GlutRender.cpp +++ b/render/GlutRender.cpp @@ -49,21 +49,21 @@ void GlutRender::run() { } void GlutRender::reshape(int wid, int hei) { - if (hei == 0) + if (hei == 0) hei = 1; - GLfloat aspect = (GLfloat)wid / (GLfloat)hei; + GLfloat aspect = (GLfloat)wid / (GLfloat)hei; - glViewport(0, 0, wid, hei); + glViewport(0, 0, wid, hei); - glMatrixMode(GL_PROJECTION); - glLoadIdentity(); - // Enable perspective projection with fovy, aspect, zNear and zFar - gluPerspective(45.0f, aspect, 0.1f, 100.0f); + glMatrixMode(GL_PROJECTION); + glLoadIdentity(); + // Enable perspective projection with fovy, aspect, zNear and zFar + gluPerspective(45.0f, aspect, 0.1f, 100.0f); } void GlutRender::display() { - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - glMatrixMode(GL_MODELVIEW); + glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); + glMatrixMode(GL_MODELVIEW); // Camera position and orientation glLoadIdentity(); @@ -91,7 +91,7 @@ void GlutRender::display() { glEnd(); } - glutSwapBuffers(); + glutSwapBuffers(); } void GlutRender::reshape_handle(int wid, int hei) {