dviid 49a5502e6c New Renderer
+ RefractiveIndexRenderer.[h+cpp]
+ config.renderer.refindx
~ main.cpp
2013-01-27 21:52:35 +01:00

31 lines
778 B
C++
Executable File

#include "ofAppGlutWindow.h"
#include "RefractiveIndex.h"
#include "RefractiveIndexRenderer.h"
#define SCREEN_WIDTH 1280
#define SCREEN_HEIGHT 800
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());
ofRunApp(new RefractiveIndexRenderer());
}