Skip to content

Instantly share code, notes, and snippets.

@robotconscience
Created June 7, 2012 18:27
Show Gist options
  • Save robotconscience/2890619 to your computer and use it in GitHub Desktop.
Save robotconscience/2890619 to your computer and use it in GitHub Desktop.
Use ofAppNoWindow on OS X
//
// 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);
}
//
// 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