GIDForums

Go Back   GIDForums > Computer Programming Forums > FLTK Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 04-Oct-2004, 13:39
usmsci's Avatar
usmsci usmsci is offline
New Member
 
Join Date: Oct 2004
Location: USA
Posts: 25
usmsci is on a distinguished road

FLTK with GLUT


hi all! i am now a new member to this forum and it looks like a great one! i am having some problems with my openGL app. first let me briefly explain my situation. i have an openGL using GLUT with another GUI layer called GLUI. it is much like FLTK but everything is much more intuitive. theres one problem. there is NO file browser/file chooser. so i have been exploring my options and FLTK was the prime choice. i have the file chooser working just with FLTK and now i want it to work with GLUT. but its not working out that way and the documention off of fltk.org is a little confusing and not really that much help, Especially since i am using Visual C++ 6.0. i keep getting linker errors, GLU errors and such and its becoming very frustrating. i have to admit, it was hard enough at first to just get FLTK to complile and run in the first place. i know this is a difficult post but i was wondering if anyone would be willing to help me with this. i am glad to send along code(that doesnt compile as ive stated) or any other information that you would need. thanks so much in advance!

As a side note.. is there anything out there that anyone would recommend that has file browsing/choosing capabilities? since GLUI doesnt handle this, then that one is out...
  #2  
Old 05-Oct-2004, 08:25
dsmith's Avatar
dsmith dsmith is offline
Senior Member
 
Join Date: Jan 2004
Location: Utah, USA
Posts: 1,351
dsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of light
Hello usmsci and welcome to GIDForums. I don't have an exact answer for you. I do think that FLTK is the best possible choice to do this from my limited experience. Unfortunately, my own experience with getting FLTK to compile under Visual C++ has been rather dismal. I use bloodshed dev-cpp and I have found it to work really good with FLTK. Have you tried a different compiler?

If you want to send along the code, I could try to compile it under my setup and see if I have any sucess. If it is a large file, you may need to send if by email.

Anyway, I hope that you stick around and if you do get somewhere with this, I would appreciate it if you would post back.

Thanks!
  #3  
Old 05-Oct-2004, 08:45
usmsci's Avatar
usmsci usmsci is offline
New Member
 
Join Date: Oct 2004
Location: USA
Posts: 25
usmsci is on a distinguished road
hi there...thanks for the welcome..basically this is all i really need done for it to work. since my program is already in GLUT the switch shouldnt(you would think be that hard) with GLUI all my checkboxes, listboxes, scrollbars etc etc change the outcome of the GLUT display. i think if i could get the FLTK window to come up(that will hold all my widgets) and the GLUT window to come up then i should be ok. that is where i am stuck right now.. that is, i need for my GLUT windowto be "a part of" the FLTK window so i can then use the FLTK widgets to interact with the GLUT app part. for example i had some terrain in my app, and i want it be wireframe. then i want to be able to check off the wireframe check box widget and then the data is updated in the GLUT window. here is what i am looking for , this is an attachment of my GLUI app. its very easy in that its intuitive to work with GLUT. FLTK has all these same features but GLUI doesnt have the file browser/chooser and i wouldnt even know where to begin on how to write my own. this has to be done in visual as the person who will be using this uses that compiler. do you know of anything other than FLTK that can do the file browsing? i have zipped up a screenie of the GLUI plus my FLTK .cpp file, but i tell you its all mangled and doesnt compile. the external libraries stuff and other things have kept me at bay. anyway thanks for your time and get back with me when you can... ;-)
Attached Files
File Type: zip GLUI_.zip (96.4 KB, 80 views)
  #4  
Old 26-Nov-2004, 11:45
MatthiasWM MatthiasWM is offline
VIP
 
Join Date: Nov 2004
Posts: 62
MatthiasWM will become famous soon enough
Quote:
Originally Posted by usmsci
since my program is already in GLUT the switch shouldnt(you would think be that hard)

FLTK does support a pretty large subset of GLUT, but there are some differences. I beleive they are mentioned in the documentation.

Another thing on GLUT: it is really easy to go from GLUT to FLTK. The structures are quite similar (which is why FLTK can emulate GLUT to begin with). You'd get the benefit of full access to a FLTK widgets and you can create your UI convinently using FLUID, the UI editor that is part of FLTK.

Please let me know exactly what problem you had to compile FLTK in VC6. We wrote the project file so that you should be able to open the FLTK project file, activate 'demo' and press F5. Everything else should go automatically. What version of FLTK ere you using?

One last thing on VC6: it is really hard to create a new project that uses FLTK. This is not really FLTKs fault, but VC6 is geared toward MS libraries.I found it to be really easy - once the original FLTK installation works well - to simply duplicate one of the 'test' project files and buld my app from there as part of the FLTK package.
  #5  
Old 26-Nov-2004, 16:21
dsmith's Avatar
dsmith dsmith is offline
Senior Member
 
Join Date: Jan 2004
Location: Utah, USA
Posts: 1,351
dsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of light
Quote:
Originally Posted by MatthiasWM
One last thing on VC6: it is really hard to create a new project that uses FLTK. This is not really FLTKs fault, but VC6 is geared toward MS libraries.

So, it's not just me, huh?

I was trying to write a brief tutorial a while ago on how to compile FLTK under different platforms, etc. I finally gave up on VC6 and said that if you want to compile FLTK for windows, download dev-c++ already.
 

Recent GIDBlogNew Corolla Altis, 10th Generation - Part I by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Forums on GIDForums admin GIDForums™ 15 17-Nov-2007 02:02
[Tutorial] GUI programming with FLTK dsmith FLTK Forum 10 03-Oct-2005 15:41
Welcome to the FLTK Forums dsmith FLTK Forum 0 08-Sep-2004 06:58

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 18:41.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.