Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multimonitor fullscreen? #60

Open
60-hz opened this issue May 14, 2021 · 2 comments
Open

Multimonitor fullscreen? #60

60-hz opened this issue May 14, 2021 · 2 comments

Comments

@60-hz
Copy link

60-hz commented May 14, 2021

I need to make a fullscreen window in an extended desktop configuration under OSX.
Is there a way to use specific GL window settings class in current ofelia or do I need to re-compile something?

ofGLFWWindowSettings class is listed on classesAndGlobalFunctions.txt but returns:
attempt to call a nil value (global 'ofGLFWWindowSettings')

Also is there a way to use multiMonitorFullScreen() or allowsMultiWindow() maybe also to remove the border (title) of the window?

Thanks

@cuinjune
Copy link
Owner

cuinjune commented May 14, 2021

Hi @60-hz You can set a specific GL version by setting setGLVersion before creating a window:

[setGLVersion 3 3, create(
|
[ofWindow]

I don't think there's a way to use multiMonitorFullScreen without recompiling Ofelia.
I think you can try adding the following line and try recompiling the external:

In src/ofxOfeliaPdBindings.h line 96:

    settings.title = title->s_name;
    settings.multiMonitorFullScreen = true; // add this line
    settings.windowMode = static_cast<ofWindowMode>(windowMode);
    if (positionSet) settings.setPosition(position);
    if (sizeSet) settings.setSize(width, height);
    ofCreateWindow(settings);

@60-hz
Copy link
Author

60-hz commented May 16, 2021

Thanks @cuinjune
I tried to re-compile but I am not very familiar with xcode... right now I have a
/Users/xxxx/addons/ofxOfelia/src/ofxOfeliaPdBindings.h:6:10: 'ofMain.h' file not found I guess my OF path is wrong?

I found a quick workaround that worked for my case, since I simply need to play a different videos on each screen : using [pd~] so I can create another screen in a second instance, move it to the second screen, then put it fullscreen.

It would be nice to be able to use other windows settings (https://openframeworks.cc/documentation/application/) directly from ofelia, rather than the base settings window. So we could be able to remove the windows decoration, allow multiple screen and more I guess?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants