If you comment out the last line in the constructor then the application will 
run as expected.

I need a handle on the display, visual, etc that fltk uses so that I can load 
other libraries that I am using.

I am developing and interactive 3D application.  For example, another library I 
am using the Object Oriented Input System library so that I can query multiple 
instances of keyboards, mice, or joysticks.  I must initialize the OIS by 
supplying a Diplay*, XVisualInfo* etc.

You must have seen my previous post about Gl contexts as I didn't mention it 
here.  However, if I do get the native handles to work then my problems there 
would be solved there as well most specifically I would be able enable 
multisampling anti-aliasing for all the platforms I support.

What I want to achieve is this:
Initialize the the X display, visual, screen and colormap.
Set these as the globals fltk will use before any windows are shown.
Use these to initialise other libraries: opengl, ois, etc.
Have fltk process gui events.
Have OIS process HID input events.
Have Opengl draw scenes.
etc.

More succintly:  I am trying to achieve cooperation between fltk and other 
libraries.

I posted code so that anyone who wanted to help me would have something to be 
able to reproduce the errors I am seeing.  That was my only intention and I 
apologize for any confusion.



>
> > Is this the wrong forum to ask about help with X problems and fltk?
> >=20
> > If I go to X mailing list will they just tell me to come back=20
> > here?  Where can I get help or at least a pointer to some help?
> >=20
> > I hate to be a bother.  I'm just asking where to go next.
>
> I think the problem is that nobody understands what it is you are trying
> to do, or why you are doing it.
> What *are* you hoping to achieve with this? This seems to be an
> unfeasibly complicated way of creating a GL window in a fltk context...
>
> Rather than showing us code that does not work, maybe you can explain,
> in terms that are simple enough for me to comprehend, what you are
> actually hoping to achieve.=20
>
> Maybe then someone might see the light and come up with an answer.
>
> I take it you have worked through the examples in the test folder and so
> forth, and looked at what they are doing and why?
>
>
>
> > > > http://www.fltk.org/doc-1.3/index.html
>
> That's the fltk-1.3 docs, but your code appears to be fltk-2.=20
> They are not the same (although this bit might be, actually.)
>
> There are fewer people supporting fltk-2 these days, so responses to
> queries that are fltk-2 specific can be thin on the ground...
>
>
>  =20
> SELEX Sensors and Airborne Systems Limited
> Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS=
> 14 3EL
> A company registered in England & Wales.  Company no. 02426132
> ********************************************************************
> This email and any attachments are confidential to the intended
> recipient and may also be privileged. If you are not the intended
> recipient please delete it from your system and notify the sender.
> You should not copy it or use it for any purpose nor disclose or
> distribute its contents to any other person.
> ********************************************************************
>

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to