-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.cpp
46 lines (38 loc) · 965 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
41
42
43
44
45
#include <stdio.h> // - Just for some ASCII messages
#include <time.h>
#include <vector>
#include "gl/glut.h"
#include "irrlicht.h"
#include "visuals.h"
#include "InitializeItems.h"
////////////////// State Variables ////////////////////////
std::vector<Sphere> spheres;
std::vector<Molecule3> mols;
/////////////// Main Program ///////////////////////////
int main(int argc, char* argv[])
{
int N,choice;
float R;
printf("Molecules/Balls? (1 for balls)");
scanf_s("%d",&choice);
printf("How many? \n");
scanf_s("%d",&N);
printf("radius? \n");
scanf_s("%f",&R);
if (choice==1)
spheres=InitializeAtoms(N,R);
else
mols=InitializeMol(N,R);
int mainwin;
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_RGBA|GLUT_DOUBLE);
glutInitWindowSize(960,480);
glutInitWindowPosition(50,50);
mainwin=glutCreateWindow("Acton!");
Setup();
glutDisplayFunc(Render);
glutReshapeFunc(Resize);
glutIdleFunc(Idle);
glutMainLoop();
return 0;
}