Article View: es.comp.os.linux.programacion
Article #12083Re: Ayuda con GLUT (OpenGL)
From: J.A. Gutierrez
Date: Mon, 03 Sep 2001 16:30
Date: Mon, 03 Sep 2001 16:30
37 lines
2188 bytes
2188 bytes
a <a@b.c> wrote: : solo en un momento dado que el usuario decide se abre la ventana (con GLUT : 3.7) y muestra la animaci�n de opengl (uso OpenGL 1.2). Alguien me podr�a : ayudar a romper el bucle glutMainLoop()?? he probado con break() pero pasa : ol�mpicamente de mi :-( http://reality.sgi.com/mjk_asd/spec3/node14.html#SECTION00041000000000000000 glutMainLoop enters the GLUT event processing loop. This routine should be called at most once in a GLUT program. Once called, this routine will never return. It will call as necessary any callbacks that have been registered. Es decir: no se puede. Alternativas: * hacer un fork/exec/wait antes del glutMainLoop. Lo mas sencillo * Usar sigusr1 (p.e.) con un handler adecuado, o un longjmp Ambas soluciones podrian ser malas por dejar el sistema grafico en estado iconsistente; habria que estudiarlo con cuidado -- PGP and other useless info at \ http://www.cps.unizar.es/~spd/ \ finger://daphne.cps.unizar.es/spd \ Timeo Danaos et dona ferentes ftp://ivo.cps.unizar.es/pub/ \ (Virgilio)
Technical Details
Message-ID:
<9n0b6u$flb$2@news.unizar.es>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!193.174.75.178!news-fra1.dfn.de!news-ge.switch.ch!news.rediris.es!news.unizar.es!not-for-mailReferences:
<9mvtcc$9l9$1@diana.bcn.ttd.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f86c8,b3d80db059912f2c
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-09-03 09:14:50 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!193.174.75.178!news-fra1.dfn.de!news-ge.switch.ch!news.rediris.es!news.unizar.es!not-for-mail
From: "J.A. Gutierrez" <spd@daphne.cps.unizar.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Ayuda con GLUT (OpenGL)
Date: 3 Sep 2001 16:30:22 GMT
Organization: Rank
Lines: 37
Message-ID: <9n0b6u$flb$2@news.unizar.es>
References: <9mvtcc$9l9$1@diana.bcn.ttd.net>
NNTP-Posting-Host: daphne.cps.unizar.es
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.unizar.es 999534622 16043 155.210.152.20 (3 Sep 2001 16:30:22 GMT)
X-Complaints-To: usenet@news.unizar.es
NNTP-Posting-Date: 3 Sep 2001 16:30:22 GMT
User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (IRIX/6.2 (IP22))