Non MFC window generaton

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
Rassilon
Posts: 1887
Joined: 29.01.2002
With us: 22 years 9 months
Location: Altair

Non MFC window generaton

Post #1by Rassilon » 20.04.2004, 14:24

For those who know of the Doctor Who Universe project I am working on...You will be aware that I am using Qt from http://www.trolltech.com I want to break away from this and use something more opensource... I have Lua on the agenda for the scripting of the planets and such but want to know how do I create a GUI without using MFC? I would prefer to generate my own libraries...I would think that all I need is a splash screen generated as I do not need toolbars or a menu bar...I can generate all of this in C++...but it seems that I would still be bound to accessing windows dll's and in turn the code would not be portable...or would it? Is it possible to bypass the windows API all together and generate my own API for window access that would work on Linux and Mac? Or is there a simpler approach with using something someone else has already done?
I'm trying to teach the cavemen how to play scrabble, its uphill work. The only word they know is Uhh and they dont know how to spell it!

Paolo
Posts: 502
Joined: 23.09.2002
With us: 22 years 2 months
Location: Pordenone/Italy

Post #2by Paolo » 20.04.2004, 21:23

For his project Mostly Harmless, Marc is working with PUI and freeglut. See the following thread.

I've started with PUI too but I found it too simple. So actually I'm involved in a very ambitious project for the realization of a multiplatform UI based on OpenGL with many features (CELUI).
My project will be suitable for the creation of fast and light User Interfaces oriented to simulation programs. Hopefully one day I will be able to prepare a GLUT version of Celestia using it.

- Paolo
Remember: Time always flows, it is the most precious thing that we have.
My Celestia - Celui

maxim
Posts: 1036
Joined: 13.11.2003
With us: 21 years
Location: N?rnberg, Germany

Post #3by maxim » 20.04.2004, 22:16

Is Java an option for you?

maxim

don
Posts: 1709
Joined: 12.07.2003
With us: 21 years 4 months
Location: Colorado, USA (7000 ft)

Post #4by don » 20.04.2004, 23:43

Another possibility is wxWidgets (formerly wxWindows), at: http://www.wxwidgets.org.
-Don G.
My Celestia Scripting Resources page

Avatar: Total Lunar Eclipse from our back yard, Oct 2004. Panasonic FZ1 digital camera (no telescope), 36X digital zoom, 8 second exposure at f6.5.

Topic author
Rassilon
Posts: 1887
Joined: 29.01.2002
With us: 22 years 9 months
Location: Altair

Post #5by Rassilon » 22.04.2004, 20:00

The entire code needs an overhaul at some point...Very little was taken in consideration to future enhancements which makes it difficult to add in new features...So its possible I could choose to write it in another language...But since OpenGL is based mostly around the C++ platform...I would prefer to stick with that...

Thanks everyone for the links...
I'm trying to teach the cavemen how to play scrabble, its uphill work. The only word they know is Uhh and they dont know how to spell it!

don
Posts: 1709
Joined: 12.07.2003
With us: 21 years 4 months
Location: Colorado, USA (7000 ft)

Post #6by don » 22.04.2004, 20:18

Hi Rassilon,

OpenGL is simply a Graphics Library. As far as I know, it contains no User Interface "widgets" or controls of any kind. So, you still need to add a UI library of some sort -- which is why Celestia has separate UI code for each of the platforms it runs on.
-Don G.

My Celestia Scripting Resources page



Avatar: Total Lunar Eclipse from our back yard, Oct 2004. Panasonic FZ1 digital camera (no telescope), 36X digital zoom, 8 second exposure at f6.5.


Return to “Development”