From 097fe11f213b4e45c8f5d564491453a29be1c5a2 Mon Sep 17 00:00:00 2001 From: Migdyn Date: Sat, 22 Oct 2022 14:33:42 -0400 Subject: [PATCH] Minor changes, as suggested by Rollerozxa --- include/NodeRenderer.h | 3 ++- include/TextureHandler.h | 2 +- main.cpp | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/include/NodeRenderer.h b/include/NodeRenderer.h index 1d8024e..96fc164 100644 --- a/include/NodeRenderer.h +++ b/include/NodeRenderer.h @@ -20,7 +20,7 @@ class NodeRenderer } - renderNode(int x, int y, int z) + int renderNode(int x, int y, int z) { glBegin(GL_QUADS); // Front @@ -120,6 +120,7 @@ class NodeRenderer } glEnd(); + return 1; } protected: diff --git a/include/TextureHandler.h b/include/TextureHandler.h index a5c21f4..c08eeb5 100644 --- a/include/TextureHandler.h +++ b/include/TextureHandler.h @@ -1,4 +1,4 @@ -#include +#include "stb_image.h" #ifndef TEXTURE_HANDLER #define TEXTURE_HANDLER diff --git a/main.cpp b/main.cpp index fc8a412..cbfe95a 100644 --- a/main.cpp +++ b/main.cpp @@ -128,9 +128,9 @@ int main(int argc, char **argv) glutInit(&argc, argv); glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH); glutInitWindowSize(800, 600); - glutCreateWindow("Spinning cube"); + glutCreateWindow("XtreemNodes Engine - By MCL Software and Cube Software"); - glClearColor(0, 0, 0, 0); + glClearColor(.2, .7, .8, 255); glEnable(GL_DEPTH_TEST);