-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.cpp
40 lines (29 loc) · 849 Bytes
/
Main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// TryLoaded.cpp : Defines the entry point for the console application.
//
#include "platformIndependentHeader.h"
#include "input/Keyboard.h"
#include "display/display.h"
#include "display/light/Light.h"
#include "openal/WAV.h"
using namespace std;
int main(int argc, char** argv)
{
srand(time(NULL));
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB | GLUT_DEPTH);
glutInitWindowSize(800,600);
glutInitWindowPosition(200, 150);
glutCreateWindow("Luminosity");
glutDisplayFunc(Display::displayFunction);
glutKeyboardFunc(Keyboard::keyboardFunction);
glutSpecialFunc(Keyboard::keystrokeFunction);
glShadeModel(GL_SMOOTH);
glEnable(GL_DEPTH_TEST);
glEnable(GL_NORMALIZE);
glEnable(GL_COLOR_MATERIAL);
Display::clear();
Light::enableLighting();
Light::killAll();
WAV::play2("music.wav");
glutMainLoop();
}