Jump to content
  • Advertisement
Sign in to follow this  
sp_1d4r

help picking free GUI library in C++

This topic is 4820 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I need a free GUI library that will allow me to grab and use the hwnd of a window or certian frame, and if possible as a second request, for it to be as multi platform as possible. Ive been looking through alot of free C++ gui libraries, and I cant tell which ones will give me direct access to a window or frame's hWnd. I need to be able to use the hWnd to display out put from a 3d engine that i have alot of code working with already.(the Revolution 3D engine)Not from a 3d engine that comes inside the gui library.

Share this post


Link to post
Share on other sites
Advertisement
I don't know much about GUIs but I think that wxWindows is what you are asking for (and it's multi plataform, even with that name :p).

But I think that's a little heavyweight for games... :x

Share this post


Link to post
Share on other sites
I'm working on something like this... the "cross-platform" compatibility is the tricky part, actually.

A good idea is to use a static member function of a globally-known class type... like a Window finder. You could make it a policy class, which would allow for multiple-platform support.

eg Policy class:

class Win32Find{
// etc...
static HWND find(int key); // or some other key value
};

Plug that in as a template parameter to your WindowFinder template, and then typedef it

typedef WindowFinder<Win32Find> Win32WindowFinder;

Then, within your Win32-specific code, you'd call:

hwnd = Win32WindowFinder::find(0);

Or what have you.

The trick is to know the type of your window finder, so that you can actually call the static function. Sometimes you can pass that (Win32WindowFinder) as a template parameter to other classes, and then reference it later.

Just some ideas... incase you were crazy enough to want to do this your self

[smile]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Original post by k0ns0l3
(and it's multi plataform, even with that name :p).

Its current name is actually wxWidgets. ;)

Qt is also a possibility, if the GPL license is ok with you. Both have their advantages and disadvantages, depending on the way you look at them.


Hope this helps.

Share this post


Link to post
Share on other sites
Has anyone seen JavaCoolDude's XML GUI Library for opengl window modeling? It's really cool. I wonder if there's any GUI libraries like that, that use XML to draw it out, that'd be really neat.

Share this post


Link to post
Share on other sites
Hum... I heard Qt had to be payed for being used in commercial projects.. But I can be mistaken... and I usually i'm! :p

The idea that I had was that wxWindows was the current name and wxWidgets was the old name... :P
The only thing gui related I used was wxHaskell (wxWidgets binding for Haskell) and Swing, so.... And I tried to use XPCE for Swi-Prolog, but... I dropped that idea... :P

Share this post


Link to post
Share on other sites
Quote:
Original post by k0ns0l3
Hum... I heard Qt had to be payed for being used in commercial projects.. But I can be mistaken... and I usually i'm! :p

The idea that I had was that wxWindows was the current name and wxWidgets was the old name... :P
The only thing gui related I used was wxHaskell (wxWidgets binding for Haskell) and Swing, so.... And I tried to use XPCE for Swi-Prolog, but... I dropped that idea... :P


Yea Qt does cost if you plan to release a project commerically. But the previous poster alluded to that by mentioning its free if you use it solely according to the guidelines of the GPL (GNU Public License).

Hope that clears it up a little,
-moe.ron

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!