sick and tire of free GLUT

Report any bugs here and we'll post fixes

Moderators: Sascha Willems, Thomas

sick and tire of free GLUT

Postby Julio Jerez » Tue Aug 25, 2009 9:56 am

Is there a light weigh GUI library that work well with SDL I am so sick and tire of Free GLUT and GLUI crashing for not reason here with not trace stack.

Code: Select all
void fgSetWindow ( SFG_Window *window )
{
#if TARGET_HOST_UNIX_X11
    if ( window )
        glXMakeCurrent(
            fgDisplay.Display,
            window->Window.Handle,
            window->Window.Context
        );
#elif TARGET_HOST_WIN32 || TARGET_HOST_WINCE
    if( fgStructure.CurrentWindow )
        ReleaseDC( fgStructure.CurrentWindow->Window.Handle,
                   fgStructure.CurrentWindow->Window.Device );

    if ( window )
    {
        window->Window.Device = GetDC( window->Window.Handle );
        wglMakeCurrent(
            window->Window.Device,
            window->Window.Context
        );
    }
#endif
    fgStructure.CurrentWindow = window;
}
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: sick and tire of free GLUT

Postby martinsm » Tue Aug 25, 2009 11:40 am

Haven't used myself, but CEGUI seems popular for lot of people: http://www.cegui.org.uk/wiki/index.php/Main_Page

There is very nice, small (but primitive) GUI system from NVIDIA: http://code.google.com/p/nvidia-widgets/ (nevertheless it has frame, label, button, checkbox, radiobutton, sliders, listbox, combobox)
Interesting thing is that it bases around immediate mode for GUI components. This is completely different concept from standard GUI system point of view. I have found that I myself write less code, when I use IMGUI concept for GUI elements. You can read more info about IMGUI's here: https://mollyrocket.com/forums/viewforum.php?f=10
Its possible to use nvidia-widgets from any windowing library (is it GLUT, or SDL). But it comes only with GLUT sample.
martinsm
 
Posts: 86
Joined: Mon Dec 19, 2005 3:15 pm
Location: Latvia

Re: sick and tire of free GLUT

Postby hpesoj » Tue Aug 25, 2009 2:48 pm

hpesoj
 
Posts: 90
Joined: Sun Jan 09, 2005 4:36 pm
Location: Cambridge/Bristol, UK

Re: sick and tire of free GLUT

Postby kallaspriit » Wed Aug 26, 2009 6:14 am

I have used CEGUI and I don't recommend it, it's quite a heavyweight component that is not too flexible nor too easy to use.
kallaspriit
 
Posts: 216
Joined: Sun Aug 14, 2005 6:31 pm

Re: sick and tire of free GLUT

Postby Dave Gravel » Wed Aug 26, 2009 11:08 am

anttweakbar is not bad, but it don't have lists and i'm not sure if the license is really compatible for all.
You search a nice physics solution, if you can read this message you're at the good place :wink:
OrionX3D Projects & Demos:
https://orionx3d.sytes.net
https://www.facebook.com/dave.gravel1
https://www.youtube.com/user/EvadLevarg/videos
User avatar
Dave Gravel
 
Posts: 800
Joined: Sat Apr 01, 2006 9:31 pm
Location: Quebec in Canada.

Re: sick and tire of free GLUT

Postby Julio Jerez » Wed Aug 26, 2009 3:12 pm

It is like every thing, I get frustrated when I have a crash bug and GLUT stops in one of thsoe oscured funtions making the debuger useless.

It is not that GLUt or GLUI are wrong, they are not, It is the combination of the two that makes is a really bad tool for development.
This is because GLUI creates so many windows context each time you make a new Control that when something goes wrong an it is in one fo those context,
it is imposible to find the reason for the Crash.

I found my crash now and it is hard to spend time making all those changes, but next time this happens again
I iwill change to a GUI the do not uses OpenGL context for making controls.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: sick and tire of free GLUT

Postby Stucuk » Wed Aug 26, 2009 3:33 pm

Can't you just use windows's buttons/etc and have opengl render on a "Panel" instead of the actual window?
User avatar
Stucuk
 
Posts: 801
Joined: Sat Mar 12, 2005 3:54 pm
Location: Scotland

Re: sick and tire of free GLUT

Postby Julio Jerez » Wed Aug 26, 2009 3:35 pm

I though of that but then I will have to deal with Linux and Mac separatly.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: sick and tire of free GLUT

Postby hpesoj » Wed Aug 26, 2009 6:57 pm

Qt is cross platform, http://qt.nokia.com, and very easy to use.
hpesoj
 
Posts: 90
Joined: Sun Jan 09, 2005 4:36 pm
Location: Cambridge/Bristol, UK

Re: sick and tire of free GLUT

Postby Julio Jerez » Sun Sep 27, 2009 4:00 pm

Here I am stock again with this piece of human faeces that is GLUT and GLUI

Does anyone know what the F%^k it is that GLUI does that if the application crash GLUI continue running as if nothing happens.
And who was a the f^%king moron who came up with that idea anyway.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: sick and tire of free GLUT

Postby Stucuk » Sun Sep 27, 2009 5:49 pm

Julio Jerez wrote:Here I am stock again with this piece of human faeces that is GLUT and GLUI

Does anyone know what the F%^k it is that GLUI does that if the application crash GLUI continue running as if nothing happens.
And who was a the f^%king moron who came up with that idea anyway.


Apps should only continue if the procedure where the crash is happening has error handling.
User avatar
Stucuk
 
Posts: 801
Joined: Sat Mar 12, 2005 3:54 pm
Location: Scotland


Return to Bugs and Fixes

Who is online

Users browsing this forum: No registered users and 8 guests

cron