Skip to content

shawnlawson/ofxCocoaWindowNibless

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
ofxCocoaWindowNibless

DESCRIPTION
-----------

Inspired from Memo's original ofxCocoaWindow. I didn't want to use Nib files, wanted to be as close to using the GLUT windowing as possible, and needed something that was compatible with OF 007 and GLEW. 


ADDING TO A PROJECT
------------------

1 Add ofxCocoaWindowNibless to addons folder
2 Add CoreVideo.framework
3 Rename any file with Objective-C headers or code will need to be renamed to be Objective-C++ compatible.

.cpp to .mm

4 Window handle must be passed to testApp if we want to unlink update rate from draw frame rate

ofRunApp( new testApp(&cocoaWindow) );



FUTURE
------

Multi-window with shared GL Context resources. 
Scrollwheel.
Handle OF_FULLSCREEN on launch.
Better handling of window titles.
Drag and Drop.

KNOWN PROBLEMS
--------------

ofSetWindowPosition() when called from setup() seems to have no effect. Possibly other window related things in setup() will not work. 

About

Nibless cocoa windows for openframeworks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published