R: [Plib-users] is a GL context required?
Brought to you by:
sjbaker
From: Paolo L. <p.l...@ci...> - 2003-08-25 14:30:28
|
> -----Messaggio originale----- > Da: pli...@li... > [mailto:pli...@li...]Per conto di Steve Baker > Inviato: sabato 23 agosto 2003 1.56 > A: pli...@li... > Oggetto: Re: [Plib-users] is a GL context required? > > > Cameron Lerch wrote: > > I'd like to use ssg in a situation that does not create a GL context. > > Currently, I manipulate the scene graph, doing hot & isect testing, but > > I never cull and draw. This is all without ever calling ssgInit(). I'm > > setting each leaf state up using ssgSetAppStateCallback() w/defaults, > > but am not loading the textures. When I do an isect test, I appear to > > be getting the wrong leafs (or at least, the wrong states for the leafs) > > back. I'm wondering if what I'm doing is even possible? > > Well, if it *is* possible, it's not by design...I suppose if you are > careful enough to avoid having SSG do anything OpenGL-related, you might > get away with it. > > You know you can have a rendering context without opening a > window - right? > > Create a 1x1 pixel p-buffer or something. Or, in glut you can glutCreateWindow() but the window don't get actually open until go through glutMainLoop(), so just call the first and the context is already at your disposal. ------------------------------------------------------------------------- Paolo Leoncini phone: +39 (0823) 623134 Visualization & Virtual Reality fax: +39 (0823) 623126 CIRA - Italian Center for Aerospace Researches mailto:p.l...@ci... Via Maiorise - 81043 Capua (CE) Italy http://www.cira.it |