-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
32 lines (29 loc) · 771 Bytes
/
main.cpp
File metadata and controls
32 lines (29 loc) · 771 Bytes
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
#include <SOIL/SOIL.h>
#include <GL/glew.h>
#include <SDL/SDL.h>
#include <SDL/SDL_mixer.h>
#include <GL/freeglut.h>
#include <iostream>
#include <fstream>
#include <cmath>
#include "global.h"
#include "utility.h"
#include "functions.cpp"
int main (int argc, char *argv[]) {
glutInit(&argc, argv);
SDL_Init(SDL_INIT_AUDIO);
Mix_Init(MIX_INIT_MP3);
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH);
glutInitWindowSize(1920, 1080);
glutInitWindowPosition(0, 0);
glutCreateWindow("Universe Sandbox 3");
setup();
glutDisplayFunc(draw);
glutReshapeFunc(resize);
glutKeyboardFunc(keyInput);
glutPassiveMotionFunc(posicionaCamera);
glutSpecialFunc(specialKeyInput);
glutMouseFunc(rodinha);
glutIdleFunc(atualizaCena);
glutMainLoop();
}