Comments (7)
have uploaded an example here:
http://www.openframeworks.cc/files/macOnTop.zip
note you must call "MacGLUTFix(true)" every frame or else it doesn't work. right now this is in user code, but should be in the glut window code.
from openframeworks.
But this approach requires us to add extra files to the OF folder. Or we would have to declare ofAppGlutWindow as a objcpp file type to make the cocoa calls work inside the cpp. Neither seem like ideal solutions to me.
Theo
from openframeworks.
See if you can fix it with c++ !
AFAIK, there's not much we can do if glut is cocoa based. I couldn't find a non objective c solution for this (short of modifying glut and shipping it instead of using the framework). Adding a .mm and .h to the OF folder doesn't seem that bad (it breaks backwards compatibility, and makes packaging a bit harder) compared to not fixing this, which just makes life super difficult for fullscreen mac apps.
from openframeworks.
Yeah I have been looking - I am wondering if we can just include it in a .h - or something clever like that. Will see if I can find a better solution. Otherwise maybe we have an ofMacUtils.mm where we can put mac specific stuff (like QTUtils).
from openframeworks.
There doesn't seem to be a non-cocoa way to solve this. So I tried modifying GLUT itself. It worked out pretty well - http://www.openframeworks.cc/dev_videos/customGLUT.mov
I grabbed the GLUT project from here ( http://iihm.imag.fr/blanch/howtos/MacOSXGLUTMouseWheel.html ) and just changed the fullscreen level to a normal window level.
The plus side about bundling our own GLUT is we can make other improvements too - like adding scroll wheel support and FSAA.
from openframeworks.
the GLUT framework is in GIT - need to change the examples to use the framework.
from openframeworks.
updated examples to use compiled OF ( xcode ) and Glut. Closed by 2028077. Closed by 2028077. Closed by 2028077.
from openframeworks.
Related Issues (20)
- VS Code on Mac: None of the Header Files are being found.
- Error compiling video\videoGrabberExample / videoInput.lib / under Windows 11 / VS 2022 HOT 2
- [actions] - linux arm failing : GPG Error NO_PUBKEY HOT 3
- Error compiling nightly on VS2022 cairolib missing? HOT 13
- Coredump on wayland HOT 2
- Emscripten make issue HOT 10
- computeShaderParticlesExample not running on macOS HOT 2
- Small issue using GLM 1.0 or more recent HOT 4
- utils/ofThread.h:42:7: warning: 'class ofThread' has virtual functions and accessible non-virtual destructor
- examples\3d\assimp3DModelLoaderExample\src\ofApp.cpp line 266 need to change from loadModel(dragInfo.files[0]); to loadModel(dragInfo.files[0].string()); HOT 4
- scripts/linux/ubuntu/install_dependencies.sh: lsb_release might not be installed before it is used in the script HOT 1
- Project Generator for VS and C files HOT 3
- ofDragInfo issue HOT 2
- [actions] raspberry failing HOT 1
- FrameRate is decreased HOT 1
- AVEngine - issue with soundPlayerExample HOT 10
- error loading .exr cubemaps HOT 6
- dangling pointer in ofXml
- ofxOscReceiver Error when creating and destroying repeatedly
- [idea] ofPathToString -> ofToString HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openframeworks.