-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
43 lines (38 loc) · 992 Bytes
/
main.cpp
File metadata and controls
43 lines (38 loc) · 992 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
/*
* main.cpp: Test OpenGL C/C++ Setup
* Authors: Etan Bard, Paul Makl
* Version: 2/2/2014
*/
#ifdef __APPLE__
#include "/usr/local/Cellar/freeglut/2.8.1/include/GL/glut.h"
#include "/usr/local/Cellar/freeglut/2.8.1/include/GL/freeglut_ext.h"
#include "/usr/local/Cellar/freeglut/2.8.1/include/GL/freeglut_std.h"
#include "/usr/local/Cellar/freeglut/2.8.1/include/GL/freeglut.h"
#include <OpenGL/glu.h>
#else
#include <GL/freeglut.h> // GLUT, includes glu.h and gl.h
#include <windows.h>
#endif
/*#define xWidth 64
#define yWidth 64
#define zWidth 64 // Keep these the same for now!
#define Particles 1000
*/
#include "Switch.h"
#include "Randy.h"
#include "vectors.h"
#include <iostream>
#include <fstream>
/**
* The main function will initialize a switch instance, then proceed to initiate the FreeGLUT loop.
*/
int main(int argc, char** argv)
{
int xa = 32;
int ya = 32;
int za = 32;
int p = 5000;
Switch x(xa, ya, za, p, argc, argv);
glutMainLoop();
return 0;
};