Created
June 7, 2012 18:27
-
-
Save robotconscience/2890619 to your computer and use it in GitHub Desktop.
Use ofAppNoWindow on OS X
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ofNoWindowRunner.cpp | |
// touchForwarder | |
// | |
// Created by Brett Renfer on 6/7/12. | |
// Copyright (c) 2012 Rockwell Group. All rights reserved. | |
// | |
#include "ofNoWindowRunner.h" | |
#include "ofAppRunner.cpp" | |
void ofSetupNoWindow(ofAppBaseWindow * windowPtr, int w, int h, int screenMode){ | |
ofSetupNoWindow(ofPtr<ofAppBaseWindow>(windowPtr,std::ptr_fun(noopDeleter)),w,h,screenMode); | |
} | |
void ofSetupNoWindow(ofPtr<ofAppBaseWindow> windowPtr, int w, int h, int screenMode){ | |
window = windowPtr; | |
window->setupOpenGL(w, h, screenMode); | |
} | |
void ofSetupNoWindow(int w, int h, int screenMode){ | |
ofSetupNoWindow(window,w,h,screenMode); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ofNoWindowRunner.h | |
// touchForwarder | |
// | |
// Created by Brett Renfer on 6/7/12. | |
// Copyright (c) 2012 Rockwell Group. All rights reserved. | |
// | |
#pragma once | |
#include "ofMain.h" | |
void ofSetupNoWindow(ofAppBaseWindow * windowPtr, int w, int h, int screenMode); | |
void ofSetupNoWindow(ofPtr<ofAppBaseWindow> windowPtr, int w, int h, int screenMode); | |
void ofSetupNoWindow(int w, int h, int screenMode); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment