mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-05 22:40:16 +01:00
added ctime
This commit is contained in:
@@ -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);}
|
||||||
|
|||||||
Reference in New Issue
Block a user