added ctime

This commit is contained in:
Jared Bruni
2020-01-31 06:14:08 -08:00
parent 13111a0a65
commit a59282f51d

View File

@@ -7,7 +7,7 @@
#include <QtGui/QPainter> #include <QtGui/QPainter>
#include <iostream> #include <iostream>
#include<cmath> #include<cmath>
#include<ctime>
void _gluPerspective( GLdouble fovY, GLdouble aspect, GLdouble zNear, GLdouble zFar ) void _gluPerspective( GLdouble fovY, GLdouble aspect, GLdouble zNear, GLdouble zFar )
@@ -40,7 +40,7 @@ void glDisplayWindow::initialize() {
glClearDepth(1.0f); glClearDepth(1.0f);
glEnable(GL_DEPTH_TEST); glEnable(GL_DEPTH_TEST);
resize(1280, 720); resize(1280, 720);
srand((unsigned int)time(0)); srand((unsigned int)std::time(0));
glEnable(GL_TEXTURE_2D); glEnable(GL_TEXTURE_2D);
glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST); glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);
glClearColor(0.0, 0.0, 0.0, 0.0);} glClearColor(0.0, 0.0, 0.0, 0.0);}