• Create Account

## OpenGL GUI anyone? Updated on 11/17/05

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

207 replies to this topic

### #61darklordsatan  Members

Posted 19 June 2005 - 09:16 PM

Sempron 2800+
256 Mb DDR

I must say I feel kinda bad seeing the hi fps count most people are having...

~330 800x600x16
~190 800x600x32

~420 1024x768x16
~265 1024x768x32

~360 640x480x16
~520 640x480x32

I guess its my crappy sempron and radeon and ram, aka my whole PC, hehe

Anyway, looking awesome, and the fact you're using XML is really cool, keep up the good work mate

cheers

### #62nihilisticod  Members

Posted 19 June 2005 - 10:02 PM

Athalon XP 1900 +
Geforce 4 MX 64mb
512mb ddr.
(yeah its old)
a little under 60fps avg

great stuff, I wrote a "customizable" gui a while ago but yours is defintely better looking and easier to customize.

Two little things I noticed though, on your sliders the mouseclick doesn't grab the sliding device if you click past the extents of the white bar even though the cursor is over the orange ball.

Also, am I correct in thinking that you cannot customize the fade speed of he checkboxes after clicking using the xml? I looked at the xml files but did not see an option for that. It may be that I am just exceptionally impatient, but I found myself clicking a checkbox several times because i thought myclick didn't register.

Other than that it works exactly how I've come to expect gui's to work, except for the mouseover glowing, which was a pleasant suprise.
... The whole thing is very well done.

### #63Kibble  Members

Posted 19 June 2005 - 10:10 PM

It is pretty cool, nice work.

The only thing I would like differently are the edit boxes. You can't select or cut/copy/paste. It is not very hard to do, especially to even link it to the OS clipboard (though this might not be an option for you unless you can find a cross-platform clipboard library, I've never heard of one before). It is very helpful to be able to do that, I really hate games that don't let you copy/paste IPs into their in-game connection screens.

It is also screwy if you try to select by using shift + arrows. It made the ' and % characters show up in the input box.

### #64/ MrWeet   Banned

Posted 20 June 2005 - 05:30 AM

Intel Pentium 4 - 2.80Ghz
512MB DDR400 (PC3200) Ram

Window - 2200
Fullscreen - 1600

### #65JavaCoolDude  Members

Posted 20 June 2005 - 01:27 PM

Greetings
So yeah I'm without a PC until the weekend when USPS shows up to my door here in Silicon Valley, but I'm definitely taking notes down.
Expect an update this weekend with most of your suggestions.

todderod, you're the man, thanks for porting the GUI to Linux, I'll get in touch with you as soon as I get a new build up and running. Again thank you for your contribution.

2.0 will make the fading twice as fast as normal, you get to choose the value you want from 0.01 to 5.0 [smile]
Now regarding the insensitive part of the sliders, I can easily fix that, look forward to the next release this coming weekend brother.

HellRiZZer, there is no documentation yet except the quick tutorial posted in the second page, I'm working on that mate :)
peace

[Edited by - JavaCoolDude on June 20, 2005 10:27:59 PM]

### #66todderod  Members

Posted 21 June 2005 - 04:14 AM

Quote:
 Original post by JavaCoolDudethanks for porting the GUI to Linux, I'll get in touch with you as soon as I get a new build up and running.

I fixed the widget problem so now it is working perfectly under Linux, except that the ./configure script is somewhat flawed when it comes to detecting the glpng and pthread libs.

I emailed you the sourcetree, and suggest you use that as basepoint for further updates, I don't feel like re-doing all those modifications :)

### #67LangFox  Members

Posted 21 June 2005 - 10:13 PM

It looks so cool!! wow, wanderful work.
I write UI myself, inspired by wow. hehe

### #68try_catch_this  Members

Posted 22 June 2005 - 12:49 AM

What is the liscence?

Can I use this for my own projects, and later if I decide to make a shareware something still continue to use it without royalties?

### #69JavaCoolDude  Members

Posted 24 June 2005 - 08:45 PM

updated main post.

### #70JavaCoolDude  Members

Posted 24 June 2005 - 08:47 PM

Quote:
 Original post by try_catch_thisWhat is the liscence?Can I use this for my own projects, and later if I decide to make a shareware something still continue to use it without royalties?

You're free to use it in any way you want as long as you provide the due credit and maybe a link to my website [wink]

### #71justo  Members

Posted 24 June 2005 - 09:09 PM

Quote:
Original post by JavaCoolDude
Quote:
 Original post by try_catch_thisWhat is the liscence?Can I use this for my own projects, and later if I decide to make a shareware something still continue to use it without royalties?

You're free to use it in any way you want as long as you provide the due credit and maybe a link to my website [wink]

first of all, this is really great work.

just in case, i would formalize the above into a licence (just pick one, there are tons out there). i know it seems stupid, especially on projects you want to make completely *open* source, but you never know what crazy situation you might get into, and, most importantly, those using your library might need it for legal/company reasons (or be more willing to use it as they'll have, in writing, the relationship between them and you).

edit: err, dont know if you know this, but the GPL is in there, maybe it got stuck in with the linux port...a bit stricter than what you seem to want.

### #72todderod  Members

Posted 24 June 2005 - 10:23 PM

Quote:
 Original post by justoedit: err, dont know if you know this, but the GPL is in there, maybe it got stuck in with the linux port...a bit stricter than what you seem to want.

Eeek, that is my misstake. GNU Autotools put that file there by itself, I meant to change that to a (for now) empty file. Same with a few other temporary files now I see, such sloppy work from my part.

Ignore the "COPYING" file and its contents, it is there by misstake.

### #73JavaCoolDude  Members

Posted 25 June 2005 - 09:46 AM

What is the most liberal license out there?
todderod, could you recompile the new release files in Linux and tell me if I broke anything in the process of adding Combo boxes?
Thank you :)

### #74JavaCoolDude  Members

Posted 25 June 2005 - 03:07 PM

ComboBoxes now high-light the item lying underneath the mouse cursor, check out the first page for an update screenshot.

The zip file with all the resources is now twice as small (750k)

### #75phantom  Members

Posted 26 June 2005 - 09:12 AM

Quote:
 Original post by JavaCoolDudeWhat is the most liberal license out there?

I favour the zlib license myself, the long and the short of it being you still own the work but anyone else is free to use, modify and redist it as long as they dont claim the orignal work as their own or modified work as orignal.

the full details.

### #76evolutional  Moderators

Posted 26 June 2005 - 10:05 AM

Quote:
 Original post by _the_phantom_I favour the zlib license myself

I agree, the ZLib license is my choice too.

### #77devin_papineau  Members

Posted 26 June 2005 - 10:13 AM

Just whatever you do, don't use the Open Profanity License :P.

### #78JavaCoolDude  Members

Posted 26 June 2005 - 11:54 AM

First page content Updated.

Thanks for the help guys, I included the zlib license in version 0.7 of my GUI which is now available in the first page, check it out. [smile]

### #79alopesajr  Members

Posted 04 July 2005 - 06:15 AM

Hi,

I tryed to port your code to Linux, as you sugest, just creating a makefile, but the compiler don't like some lines of your code. The errors I found until now are:

g++ -O3 -c TextureUtils.cpp
TextureUtils.cpp: In member function bool Texture::createNormalizingCube(const
char*, unsigned int, bool)':
TextureUtils.cpp:799: error: syntax error before char'
TextureUtils.cpp:800: error: syntax error before char'
TextureUtils.cpp:801: error: syntax error before char'
TextureUtils.cpp:821: error: syntax error before char'
TextureUtils.cpp:822: error: syntax error before char'
TextureUtils.cpp:823: error: syntax error before char'
TextureUtils.cpp:843: error: syntax error before char'
TextureUtils.cpp:844: error: syntax error before char'
TextureUtils.cpp:845: error: syntax error before char'
TextureUtils.cpp:866: error: syntax error before char'
TextureUtils.cpp:867: error: syntax error before char'
TextureUtils.cpp:868: error: syntax error before char'
TextureUtils.cpp:889: error: syntax error before char'
TextureUtils.cpp:890: error: syntax error before char'
TextureUtils.cpp:891: error: syntax error before char'
TextureUtils.cpp:912: error: syntax error before char'
TextureUtils.cpp:913: error: syntax error before char'
TextureUtils.cpp:914: error: syntax error before char'
make: *** [TextureUtils.o] Error 1

AND

g++ -O3 -c GUIUtils.cpp
GUIUtils.cpp: In member function virtual void
GUITextBox::checkKeyboardEvents(KeyEvent, int)':
GUIUtils.cpp:2187: warning: converting to non-pointer type char' from NULL
GUIUtils.cpp:2188: warning: converting to non-pointer type char' from NULL
GUIUtils.cpp: In member function virtual const Tuple4i&
GUITextBox::getWindowBounds()':
GUIUtils.cpp:2316: warning: converting to non-pointer type char' from NULL
GUIUtils.cpp: In member function virtual void
GUIComboBox::actionPerformed(GUIEvent&)':
GUIUtils.cpp:3299: error: no matching function for call to GUIEventListener::
actionPerformed(GUIEvent)'
../Events/GUIEventListener.h:10: error: candidates are: virtual void
GUIEventListener::actionPerformed(GUIEvent&)
GUIUtils.cpp: In member function const char* GUIComboBox::getSelectedItem()
const':
GUIUtils.cpp:3444: error: passing const String' as this' argument of
GUIUtils.cpp: In member function const char* GUIComboBox::getItem(unsigned
int) const':
GUIUtils.cpp:3449: error: passing const String' as this' argument of
GUIUtils.cpp:3489:2: warning: no newline at end of file
make: *** [GUIUtils.o] Error 1

I could try to "fix" it if I have more time to study your code. But maybe you could just look at the error messages and quickly find what are the problems.

Best Regards,

ALopes.

Posted 05 July 2005 - 09:08 PM

A quick and dirty port to Linux using scons build system. Just type
scons in the directory and scons in the example directory. It should
work.

Just some syntaxical fixes, i don't have any Windows, so i can't check if it works with this OS