|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Catching minimise with opengl/glut.Hi, I am trying to catch when a user clicks on the minimise icon in
the top right hand corner of an opengl created window. Looking at the source code there is a case which is documented to do this for me but I never seem to hit that piece of code when I click the minimise icon. I am on Linux using X. Snippet: case SC_MINIMIZE : /* User has clicked on the "-" to minimize the window */ /* Turn off the visibility */ window->State.Visible = GL_FALSE ; Can someone point me in the right direction? Thanks. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Freeglut-developer mailing list Freeglut-developer@... https://lists.sourceforge.net/lists/listinfo/freeglut-developer |
|
|
|
|
|
Re: Catching minimise with opengl/glut.OK, I tried doing the below with my Cygwin/Windows machine at home
and got an error message: "failed to open display ''" Unless somebody can advise, I am not able to run any "freeglut" demos in my Cygwin window. (I daresay there has been a discussion about this before--and possibly directed at me--but at the moment I don't have the time and energy to go root it out.) Can anybody else step up to the plate? - John At 08:14 PM 9/27/2009, you wrote: >About the only thing I can think of right off, if you can rebuild the >source code, is to stick a print statement at the beginning of the >function (and have it print out only if it's not a redraw event, >otherwise you get tons of them), having it print out the various >event data. You should get a specific event when you minimize the >window. Unfortunately I'm not the Linux authority so I can't go much >further into detail. > > - John > > >At 09:52 AM 9/24/2009, you wrote: > > >Hi, I am trying to catch when a user clicks on the minimise icon in > >the top right hand corner of an opengl created window. > > > >Looking at the source code there is a case which is documented to do > >this for me but I never seem to hit that piece of code when I click > >the minimise icon. > > > >I am on Linux using X. > > > >Snippet: > > > >case SC_MINIMIZE : > > /* User has clicked on the "-" to minimize the window > >*/ > > /* Turn off the visibility */ > > window->State.Visible = GL_FALSE ; > > > >Can someone point me in the right direction? > > > >Thanks. > > > >------------------------------------------------------------------- > ----------- > >Come build with us! The BlackBerry® Developer Conference in SF, CA > >is the only developer event you need to attend this year. Jumpstart your > >developing skills, take BlackBerry mobile applications to market and stay > >ahead of the curve. Join us from November 9-12, 2009. Register now! > >http://p.sf.net/sfu/devconf > >_______________________________________________ > >Freeglut-developer mailing list > >Freeglut-developer@... > >https://lists.sourceforge.net/lists/listinfo/freeglut-developer > > >------------------------------------------------------------------------------ >Come build with us! The BlackBerry® Developer Conference in SF, CA >is the only developer event you need to attend this year. Jumpstart your >developing skills, take BlackBerry mobile applications to market and stay >ahead of the curve. Join us from November 9-12, 2009. Register now! >http://p.sf.net/sfu/devconf >_______________________________________________ >Freeglut-developer mailing list >Freeglut-developer@... >https://lists.sourceforge.net/lists/listinfo/freeglut-developer ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Freeglut-developer mailing list Freeglut-developer@... https://lists.sourceforge.net/lists/listinfo/freeglut-developer |
|
|
Re: Catching minimise with opengl/glut.It seems you have built freeglut under Cygwin to use X. So you need to install and start Cygwin's X server and set your DISPLAY environnement variable to point at it. Right now, it looks like that variable is empty, hence the error message you got. - André Bleau, Cygwin's OpenGL package maintainer. > Date: Tue, 3 Nov 2009 21:32:37 -0600 > To: freeglut-developer@... > From: johnffay@... > Subject: Re: [Freeglut-developer] Catching minimise with opengl/glut. > > OK, I tried doing the below with my Cygwin/Windows machine at home > and got an error message: "failed to open display ''" > > Unless somebody can advise, I am not able to run any "freeglut" demos > in my Cygwin window. (I daresay there has been a discussion about > this before--and possibly directed at me--but at the moment I don't > have the time and energy to go root it out.) > > Can anybody else step up to the plate? > > - John Windows Live : vos amis voient plus facilement ce que vous faites sur Facebook. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Freeglut-developer mailing list Freeglut-developer@... https://lists.sourceforge.net/lists/listinfo/freeglut-developer |
| Free embeddable forum powered by Nabble | Forum Help |