I was wondering if someone has already experienced shaped windows?
I’m not sure if I’m understanding that right but it seems that this is called “Overlays” and our glut version doesn’t support that.
I need to create a little “preloading window” without any decoration, without any title bars or any close buttons (and if possible transparent background so I can use rounded rectangle shape window),…
So my question is the following:
Is it possible to do that with openframeworks, I know that it’s pretty easy in Java with something like frame.setUndecorated(true) but I guess that it’s not that simple with glu!
This topic is so old but… I’m dealing with the same ‘problem’:
“I need to create a little “preloading window” without any decoration, without any title bars or any close buttons”
Has somebody found a solution?
Is this possible? Some tips?
int main() {
ofAppGlutWindow window;
ofSetupOpenGL(&window, 800,600,OF_FULLSCREEN);
ofRunApp(new testApp());
}
that will get you a window with no wiindow bars and with a resolution of 800x600. You can change the size/resolution to a different number eg. 1024,768
Really?
This doesn’t work here …
Actually I think that OF_FULLSCREEN just trigger the “glutEnterGameMode();” wish put your application in fullscreen mode whatever the resolution you specified!
Mmh! I’m not sure i’m still following you guys!
Are you saying that when using OF_FULLSCREEN with a resolution lower than the resolution of your screen (let’s say 300*200) you both get a small non fullscreen window (300*200?) without border or title bar?
[quote author=“simongeilfus”]Mmh! I’m not sure i’m still following you guys!
Are you saying that when using OF_FULLSCREEN with a resolution lower than the resolution of your screen (let’s say 300*200) you both get a small non fullscreen window (300*200?) without border or title bar?[/quote]
[quote author=“simongeilfus”]Hey Thanks Nick!
I think I missed this post on the forum! Thanks for pointing this out!
Any idea on how you do that on a mac?[/quote]
Unfortunately, I don’t have/use a Mac. But if you read the forum post link I posted you will see that theo (openframeworks core programmer) says that you can create a splash screen by doing this:
No, actually I was talking about the solution that robotfunk gave in this link.
I’m working on windows and it’s working perfectly (no windows borders or title bars) but I want a crossplatform class that manage that kind of effect on each platform.
Anyway thanks for your help!
The sleep is due to avoid having the focus of the codeblocks terminal window. If you’re not running the app from within CB you wont need this. Maybe there’s a cleaner way to get the Window handle but this was all I could find…
Wow thanks a lot Grimus!
Now the only thing that is missing is the Macosx part! I don’t have access to a mac right now but I will try to find one later!
Thanks a lot!