Skip to content
This repository
Browse code

FULL_HD_ENABLE macro for switching environments

  • Loading branch information...
commit 280f06783faf99338777d152151f1a80ca5de111 1 parent 9572a52
Hideyuki Saito hideyukisaito authored

Showing 2 changed files with 8 additions and 2 deletions. Show diff stats Hide diff stats

  1. +5 2 src/main.cpp
  2. +3 0  src/testApp.h
7 src/main.cpp
@@ -5,7 +5,10 @@
5 5 int main(){
6 6 ofAppGlutWindow window; // create a window
7 7 // set width, height, mode (OF_WINDOW or OF_FULLSCREEN)
8   - ofSetupOpenGL(&window, 1920, 1080, OF_FULLSCREEN);
9   - //ofSetupOpenGL(&window, 1000, 800, OF_WINDOW);
  8 +# ifdef FULL_HD_ENABLE
  9 + ofSetupOpenGL(&window, 1920, 1080, OF_FULLSCREEN);
  10 +# else
  11 + ofSetupOpenGL(&window, 1000, 800, OF_WINDOW);
  12 +# endif
10 13 ofRunApp(new testApp()); // start the app
11 14 }
3  src/testApp.h
@@ -12,6 +12,9 @@
12 12 #define SEVERHOST "127.0.0.1"
13 13 #define SERVERPORT 5555
14 14
  15 +// uncomment if you use Full HD display
  16 +// #define FULL_HD_ENABLE
  17 +
15 18 class testApp : public ofBaseApp
16 19 {
17 20 public:

0 comments on commit 280f067

Please sign in to comment.
Something went wrong with that request. Please try again.