this code awairs: * add (from david) of RelaxRate analysis synthesise and display * any learning that Tom brings back from the Middlesbrough trip tomorrow. a pretty nice little piece of code, gents!
28 lines
685 B
C++
Executable File
28 lines
685 B
C++
Executable File
#include "ofAppGlutWindow.h"
|
|
#include "RefractiveIndex.h"
|
|
|
|
#define SCREEN_WIDTH 800
|
|
#define SCREEN_HEIGHT 600
|
|
|
|
int main() {
|
|
|
|
ofAppGlutWindow window;
|
|
|
|
bool fullscreen;
|
|
|
|
//fullscreen = true;
|
|
fullscreen = false;
|
|
|
|
cout << "> display configuration" << endl;
|
|
cout << "* fullscreen: " << (fullscreen ? "yes" : "no") << endl;
|
|
|
|
if(!fullscreen) {
|
|
cout << "* screen width: " << SCREEN_WIDTH << endl;
|
|
cout << "* screen height: " << SCREEN_HEIGHT << endl;
|
|
}
|
|
|
|
ofSetupOpenGL(&window, SCREEN_WIDTH, SCREEN_HEIGHT, (fullscreen ? OF_FULLSCREEN : OF_WINDOW));
|
|
ofRunApp(new RefractiveIndex());
|
|
|
|
}
|