-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
56 lines (35 loc) · 1022 Bytes
/
Copy pathmain.cpp
File metadata and controls
56 lines (35 loc) · 1022 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#include <stdlib.h>
#include <GL/glut.h>
#include <cstdio>
using namespace std;
//variaveis para numeros das janelas
int wing, winp = 0;
int main(int argc,char** argv) {
// initialise glut
glutInit(&argc,argv);
glutInitDisplayMode(GLUT_RGBA|GLUT_DOUBLE|GLUT_DEPTH);
glutInitWindowSize(640,480);
glutInitWindowPosition(0,100);
// create window 1
wing = glutCreateWindow("Gourand");
//glutDisplayFunc(display1)
glutInitWindowPosition(640,100);
winp = glutCreateWindow("Phong");
//glutDisplayFUnc(display2)
// set the function to use to draw our scene
//glutDisplayFunc();
// set the function to handle changes in screen size
//glutReshapeFunc();
//vai cuidar dos eventos do mouse
//glutMouseFunc();
//glutMotionFunc();
//funcao para eventos do teclado
//glutKeyboardFunc();
// run our custom initialisation
//OnInit();
// set the function to be called when we exit
//atexit(OnExit);
// this function runs a while loop to keep the program running.
glutMainLoop();
return 0;
}