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-02-19 12:55:51 +01:00
|
|
|
|
2012-02-20 19:48:43 +01:00
|
|
|
////also the new shit////
|
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
|
|
|
|
2012-02-21 17:51:14 +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
|
|
|
}
|