From: Diederick C. N. <dc...@gm...> - 2013-04-10 10:42:17
|
Hi Eero, Thanks for the insights. As long as there is any display callback, even if its a noop, you wont get an error. For as far as I can see/predict, your setup should still work with current trunk. But in principle its undefined what happens when you glutSetWindow from your render callback, I think. I am not sure if it'll work on other platforms either... Best, Dee On Wed, Apr 10, 2013 at 5:38 PM, Eero Pajarre <epa...@gm...> wrote: > On Thu, Apr 4, 2013 at 6:40 AM, Diederick C. Niehorster > <dc...@gm...> wrote: > >> Why have you organized your code this way, what is the benefit over >> separate callbacks (or a simple if in a single display callback)? >> > > (sorry for the delay in my reply) > > My reasons are partly historical, originally I implemented some things > by using gamemode screen which spanned multiple display devices. > Microsoft broke this during Vista transition, and the current way was > probably the easies transition. > > Also for technical reason, my rendering consists of something like > "scene graph phase" and "final rendering phase(s)". So so far I have > kept these together behind one render callback. The views are rendered > on a single large virtual screen I can just set the viewport to > correct place, if multiple windows are used then I have to > glutSetWindow. > > I have added dummy render callback for the additional windows, and so > far does work. I will have to watch out when trying to update > FreeGLUT. > > Eero > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Freeglut-developer mailing list > Fre...@li... > https://lists.sourceforge.net/lists/listinfo/freeglut-developer |