28 lines
685 B
C++
Raw Normal View History

2012-01-24 15:13:07 +01:00
#include "ofAppGlutWindow.h"
#include "RefractiveIndex.h"
2012-02-11 18:54:46 +01:00
#define SCREEN_WIDTH 800
#define SCREEN_HEIGHT 600
2012-01-24 15:13:07 +01:00
int main() {
2012-02-21 16:56:38 +01:00
2012-01-24 15:13:07 +01:00
ofAppGlutWindow window;
2012-02-21 16:48:39 +01:00
bool fullscreen;
2012-02-11 18:54:46 +01:00
2013-01-24 11:02:27 +01:00
//fullscreen = true;
fullscreen = false;
2012-02-11 18:54:46 +01:00
cout << "> display configuration" << endl;
cout << "* fullscreen: " << (fullscreen ? "yes" : "no") << endl;
2012-02-21 16:48:39 +01:00
2012-02-11 18:54:46 +01:00
if(!fullscreen) {
2012-02-21 16:48:39 +01:00
cout << "* screen width: " << SCREEN_WIDTH << endl;
cout << "* screen height: " << SCREEN_HEIGHT << endl;
2012-02-11 18:54:46 +01:00
}
2012-02-21 16:48:39 +01:00
ofSetupOpenGL(&window, SCREEN_WIDTH, SCREEN_HEIGHT, (fullscreen ? OF_FULLSCREEN : OF_WINDOW));
2012-01-24 15:13:07 +01:00
ofRunApp(new RefractiveIndex());
2012-02-21 16:56:38 +01:00
2012-01-24 15:13:07 +01:00
}