LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-03-2003, 02:38 PM   #1
renjith
Member
 
Registered: Jul 2003
Posts: 30

Rep: Reputation: 15
Graphics Programming Language


I want to make a GUI for a chess program, but in a way that will be quick but nice. Unfortunately I'm not acquainted with OpenGL [I know C/C++ programming fairly well] so unless someone knows a quick guide to learning OpenGL, I guess I would have to resort to another option. I know how to do TCL GUIs, but I was wondering whether anyone could give suggestions on other GUI languages on the Linux platform that I can program in? Any help would be appreciated.
 
Old 08-03-2003, 11:38 PM   #2
coolman0stress
Member
 
Registered: Jun 2003
Location: Toronto, Ontario, Canada
Posts: 288

Rep: Reputation: 30
I would say learn SDL, but that's for windows.

Anyway, there is a bunch of linux gui libraries (though i am not very familiar with any).
You could always go low (but simple) with ncurses.h for c/c++, but it's command line graphics and not windows stuff (correct me if i am wrong on this). Other than that, you could try out the GUI facilities found in other languages, like Perl (Tk), Python, Java, etc...
 
Old 08-11-2003, 03:24 PM   #3
Bjørn
LQ Newbie
 
Registered: Aug 2003
Location: The Netherlands
Posts: 24

Rep: Reputation: 15
SDL is certainly not only for Windows. It's an abstraction layer working on top of many operating systems, including Linux and Windows. Because it abstracts from different underlying OS-specific code, it tends to be much easier to pick up and understand.

It is, however, not a GUI lib, it's a media lib. You might want to search for a GUI lib built on top of SDL (sorry, I've not used SDL and don't know any).
 
Old 08-11-2003, 03:43 PM   #4
coolman0stress
Member
 
Registered: Jun 2003
Location: Toronto, Ontario, Canada
Posts: 288

Rep: Reputation: 30
Yeah, i made a mistake in my orignal post. I meant to say GDI. Dunno why SDL even come to my mind. Thanks for the correction.
 
Old 08-12-2003, 09:07 AM   #5
tjm
Member
 
Registered: Oct 2002
Posts: 55

Rep: Reputation: 15
You could look at gtkmm (www.gtkmm.org) it is a c++ wrapper of gtk. Lots of documentation, so it shouldn't be too bad.

BTW, for the creation of a chess board, openGL would be really quite easy. A good book is 'OpenGL game programming'. Written for windows, but if you ignore the first two chapters it is OS Independant. Quick introduction to making stuff work, and then once you know the basics, it should be easy from there.
If you choose the OpenGL route, check out NeHe's website for tutorials and forums.

Cheers,

-tjm
 
Old 08-16-2003, 04:15 AM   #6
renjith
Member
 
Registered: Jul 2003
Posts: 30

Original Poster
Rep: Reputation: 15
Thanks a lot for the feedback. I will check on some of the things you mentioned. I checked Nehe's website, but, unless I downloaded the wrong stuff, the code examples are java. But I have found other links. I have decided to go for OpenGL. I'd like to know one more thing. I've seen something about a library called GLUT, apparently mostly used in Linux OpenGL apps/ something like that. Anybody who has more information on this? And roughly how long would it take for an average-experience C/C++ programmer acquainted with Linux take to learn what I'd need to learn for this ?
 
Old 08-16-2003, 09:46 AM   #7
Pres
Member
 
Registered: Jun 2002
Location: Australia
Distribution: Slack 9.1
Posts: 232

Rep: Reputation: 30
Most of Nehe's native tutes are not java but windows c++ with glut. You must've hooked one of the many ports of Nehe's demo code - quite groovy, you can look at the same code for linux c++ with SDL for some tutes, lots of source ports there on Nehe.

Track down the red book/blue book, they're downloadable and really useful.

I use SDL instead of glut - easy, nice helper functions too for non-graphical stuff ... I like it.
 
Old 08-16-2003, 10:08 AM   #8
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 627

Rep: Reputation: 31
hi,
look at www.fltk.org
I think the fltk is a good and interface for C++/C. fltk is open source software multiplatform an da lot of examples ( checker for example)come with.
I have also some simple examples that I have written my self for beginners I can send them if you want

enjoy
best regard
bela
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
which programming language is used to do tcp/ip programming?? gajaykrishnan Linux - Networking 9 12-21-2012 05:16 AM
Best programming language to use cudajaw Linux - Newbie 30 03-12-2005 04:09 AM
D Programming Language XsuX Programming 7 11-17-2004 08:55 PM
What programming language do you know? zikhermm Programming 11 09-15-2001 10:51 PM
Programming Language Colonel Panic Programming 9 08-10-2001 01:57 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration