Minor changes, as suggested by Rollerozxa
This commit is contained in:
parent
037ce2010a
commit
097fe11f21
@ -20,7 +20,7 @@ class NodeRenderer
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
renderNode(int x, int y, int z)
|
int renderNode(int x, int y, int z)
|
||||||
{
|
{
|
||||||
glBegin(GL_QUADS);
|
glBegin(GL_QUADS);
|
||||||
// Front
|
// Front
|
||||||
@ -120,6 +120,7 @@ class NodeRenderer
|
|||||||
}
|
}
|
||||||
|
|
||||||
glEnd();
|
glEnd();
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include <png.h>
|
#include "stb_image.h"
|
||||||
#ifndef TEXTURE_HANDLER
|
#ifndef TEXTURE_HANDLER
|
||||||
#define TEXTURE_HANDLER
|
#define TEXTURE_HANDLER
|
||||||
|
|
||||||
|
4
main.cpp
4
main.cpp
@ -128,9 +128,9 @@ int main(int argc, char **argv)
|
|||||||
glutInit(&argc, argv);
|
glutInit(&argc, argv);
|
||||||
glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH);
|
glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH);
|
||||||
glutInitWindowSize(800, 600);
|
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);
|
glEnable(GL_DEPTH_TEST);
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user