Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

How to create a ofAppEGLwindow

$
0
0

@cgiles wrote:

Hello, for my project, I need to be able to initiate my window, with ofEGLwindowsetting, so I can define on which ofEGLWindowSetting.screenNum I want my output.

Every try I made, failed.

It compiles, but then crash at start up.

My code :

int main( ){
ofAppEGLWindow::Settings settings;
settings.width = 400;
settings.height = 480;
settings.setPosition(ofVec2f(0,0));
settings.screenNum = 5;
ofAppEGLWindow windowTest;
ofCreateWindow(settings);
ofRunApp( new ofApp());
}

How can I create an ofappEGLwindow for manage my output windows ?

I must use an ofAppEGLWindow, because it's the only way on the rpi to define on which display (hdmi or official lcd) I want my output window.

I can't use Fbcp ( yes the main goal would be to do a dual screen ) so I need to use the vc_dispmanx function for define the display I will use.

Thank you for reading me, sorry for the bad english, a vous CognacJay :slightly_smiling:

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles