(P.S. Please don't top-post. http://catb.org/jargon/html/T/top-post.html)

Jaideep Khadilkar wrote:
>> 
>> Marcus Lindblom <[EMAIL PROTECTED]> wrote:
>> 
>> Jaideep Khadilkar wrote:
>>     > Hi.....
>>      >
>>      > I want to use Fltk as GUI with OpenSG. I am new to OpenSG and don't
>>      > know how to proceed. Is it the case that only Glut , Qt can be
>>     used???
>>      > In my Fltk code I have created a class called FltkWindow derived
>>     from
>>      > GlWindow(which is a special class in Fltk) , where I put my
>>     OpenGL calls
>>      > to draw in the window.
>>      > But how to use that with OpenSG?? Do I have to use PassiveWindow???
>>      > All the examples with OpenSG are in GLUT or QT, so not being able to
>>      > figure out. It will be really helpful if u can give an example.
>> 
>>     PassiveWindow is waht you want to use. It's quite simple, just call
>>     render on it where you'd put your glClear()/glDraw() calls.
>> 
>>     There might be an example or test in the Source/System/Window directory.
>> 
 > I went thru some test examples in System/Window folder.
 > I tried calling  window->render(renderAction) in my code, but it drew
 > only black in my window.

That's something. A crash would've been worse.

 > what i want to know is, with fltk do we have
 > to manually
 > draw our scenegraph thru traversing it and calling openGL commands as
 > appropriate to my object types, or OpenSG does it for us???

Yes. You need to link your nodes and set the root-node in the SSM, then 
just call redraw().

 > In other examples,  they have used simplemanager and just assigning it
 > the GlutWindow and calling redraw on simplemanager does the work.
 > Can we do something like that with fltk or I have to code it without
 > simplemanager????

The SSM should work. By using PassiveWindow you let Fltk handle the GL 
context setup (instead of Glut).

Could you post your setup & rendering code? (The OpenSG calls.)

Cheers,
/Marcus




-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to