Which library should I use?

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
ibly31
Chaos Rift Junior
Chaos Rift Junior
Posts: 312
Joined: Thu Feb 19, 2009 8:47 pm
Current Project: Like... seven different ones
Favorite Gaming Platforms: Xbox 360, Gamecube
Programming Language of Choice: C++, ObjC
Location: New Jersey.

Which library should I use?

Post by ibly31 »

I have been making games in C++ so far, with a library called DarkGDK, and it won't let me include any standard headers and it's veerryy restricted. I hear of a lot of libraries(ogre3D, SDL, OpenGL, DirectX) and I'm wondering which of these is best for a semi-beginner, and has a big community, so my help pleas won't go unnoticed. Thanks
Image
Twitter
Website/Tumblr
My Projects

The best thing about UDP jokes is that I don’t care if you get them or not.
User avatar
Kros
Chaos Rift Regular
Chaos Rift Regular
Posts: 136
Joined: Tue Feb 24, 2009 4:01 pm
Current Project: N/A
Favorite Gaming Platforms: PC, Playstation/2/3
Programming Language of Choice: C++
Location: Oregon,USA
Contact:

Re: Which library should I use?

Post by Kros »

I highly recommend SDL for a well documented, beginner input/media library. Its very straight forward and has a strong set of community tutorials (google lazyfoo).

http://www.libsdl.org
Isaac Asimov wrote:Part of the inhumanity of the computer is that, once it is competently programmed and working smoothly, it is completely honest.
YouTube Channel
User avatar
Maevik
Chaos Rift Junior
Chaos Rift Junior
Posts: 230
Joined: Mon Mar 02, 2009 3:22 pm
Current Project: www.keedepictions.com/Pewpew/
Favorite Gaming Platforms: PC
Programming Language of Choice: C++
Location: Long Beach, CA

Re: Which library should I use?

Post by Maevik »

Kros wrote:I highly recommend SDL for a well documented, beginner input/media library. Its very straight forward and has a strong set of community tutorials (google lazyfoo).

http://www.libsdl.org
I can't say it's the best because it's all I've used so far, but I'm learning it as my first library and using lazyfoo's tutorials. They assume a pretty good amount of previous C++ knowledge, but even as a begginer I'm having a pretty easy time getting through them.
My love is like a Haddoken, it's downright fierce!
User avatar
ibly31
Chaos Rift Junior
Chaos Rift Junior
Posts: 312
Joined: Thu Feb 19, 2009 8:47 pm
Current Project: Like... seven different ones
Favorite Gaming Platforms: Xbox 360, Gamecube
Programming Language of Choice: C++, ObjC
Location: New Jersey.

Re: Which library should I use?

Post by ibly31 »

I've seen some of the GyroVorbis development videos, and I see File, Edit,View menus mixed with graphics, is it possible to have a frame of the window devoted to SDL? And is SDL it? Or is SDL a plugin into OpenGL, or DirectX?
Image
Twitter
Website/Tumblr
My Projects

The best thing about UDP jokes is that I don’t care if you get them or not.
User avatar
programmerinprogress
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 632
Joined: Wed Oct 29, 2008 7:31 am
Current Project: some crazy stuff, i'll tell soon :-)
Favorite Gaming Platforms: PC
Programming Language of Choice: C++!
Location: The UK
Contact:

Re: Which library should I use?

Post by programmerinprogress »

if we're talking menus and toolbars, you could use the win32 API to setup a window and you would use resource scripts to setup the menu.

But the Win32 is rather difficult, and it takes a lot of code just to set up a window, also it's somewhat difficult to program in comparison to SDL (i'm saying this from experience)

I believe the ES team use Blitz to make their editors (although i've never used it )

Personally I use SDL on it's own, and I write my own menu systems, but that's because I like to know how everthing works in my applications, also it's an interesting learning experience.

Just remember, there is always a solution to your problem, you just have to see if the problem can be solved easily using a ready-built package, or if you have to custom write the solution (of course the problem could already be solved, and you may opt to use a custom built solution)

good luck in finding your answers, personally i'm an SDL-Head, so i'm going to recommend it ;)

EDIT: SDL is NOT an extension to OpenGL or DirectX, SDL is an API which acts as a 'layer' between the hardware and the OS, that's why it is so flexible in terms of the OS you use it for, it doesn't matter about your hardware, because it gives you a uniform interface, SDL sorts out how the program interacts with the OS and hardware
---------------------------------------------------------------------------------------
I think I can program pretty well, it's my compiler that needs convincing!
---------------------------------------------------------------------------------------
And now a joke to lighten to mood :D

I wander what programming language anakin skywalker used to program C3-PO's AI back on tatooine? my guess is Jawa :P
CC Ricers
Chaos Rift Regular
Chaos Rift Regular
Posts: 120
Joined: Sat Jan 24, 2009 1:36 am
Location: Chicago, IL

Re: Which library should I use?

Post by CC Ricers »

Ogre is a flexible OO-based library that can help add some polish to your graphics in your program, but that's all it's for. You still have to program the rest of the input and sound logic yourself.

I used SDL at first to do everything- take input, make graphics and produce sound. Then I learned OpenGL and used SDL as the input functions. And more recently, using DirectX with SDL. Like ProgrammerInProgress, I found Win32 code to be too verbose (though I saw some nicely coded examples that separate the callback functions from the main program loop). All I wanted to do was make a window to put all my graphics in there, custom interface included.

There is a graphical solution to debugging and tweaking your programs on the screen without resorting to custom-made menus. It is called AntTweakBar and I highly recommend using it. It already creates a GUI for changing parameters that you define yourself, and displays right on the screen.
User avatar
aamesxdavid
ES Beta Backer
ES Beta Backer
Posts: 347
Joined: Wed Jan 07, 2009 8:49 pm
Location: Bellevue, WA
Contact:

Re: Which library should I use?

Post by aamesxdavid »

If you're looking for a fully-featured engine for C++, Irrlicht is a good choice. Stick with open source, and it's pretty easy to find the ones with good communities. For more engines: http://www.devmaster.net/engines/
Post Reply