Does anybody know of some good graphic libraries for c++? I am using Borland Builder X.
If that helps any.
Does anybody know of some good graphic libraries for c++? I am using Borland Builder X.
If that helps any.
Last edited by CrazyJohn66; 07-02-2008 at 10:06 AM.
SDL A multi-platform library that does 2D graphics and other things like input and output, and I think sound too. 3D can be done with OpenGL.
Then there's the OpenGL a strictly 3D graphics programming library, but 2D can be done too, with some work.
DirectX, a Windows library, where you can do 2D, 3D, input, sound, music, and multiplayer. Some of those features are deprecated though.
There's also Allegro, multi-platform, mostly 2D, 3D can be done, input, output, not very complicated compared to others.
OpenGL and DirectX are the big ones, but it depends what platform you plan to develop on.
Check here for more links to these subjects.
Will this work with borland builder X?
It's probably easier to use GNU or MS compilers.
Code::Blocks with mingw32 is far better than Borland Builder IMO anyway
My guess is that you are new to programming and BB is the first compiler you have ever used. Am I correct?
Yes I was hoping to use just a simple one But this one does not support graphics.
Get visual studio express. It can be a pain to install and a bit overwhelming in the start, but it it truly amazing.
Hmm, maybe I sound a bit to much like a fan boy?
Personally, I'd recommend using the SDL. It's quite easy to use.
Yeah, you should probably consider getting MSVC (that's "visual studio express" to h3ro) or Dev-C++ or Code::Blocks. Or all three, to see which you like best.
The SDL might work with Borland, I don't know. You could try it I guess.
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
I would go with MSVC, code::blocks is a bit tough to set up, and I've had bad experiences with DevC++.
Just checked, DevCPP is cold. Code::Blocks is the way to go if you want a compiler that isn't controlled by "the man." I've even written a few tutorials to get you started.
As for graphic libraries, watch my site. One day soon I hope to include tutorials on getting SDL, Allegro, and OpenGL up as I'm going to start fiddling with those one day (soon I hope).
SDL - Nice, powerful, good for 2D, cross compatible, can be confusing for beginners.
Allegro - Simple, somewhat less powerful, great for 2D, okay for 3D, cross compatable.
OpenGL - Very powerful, cross compatible, unmatched for 3D, no audio support.
Type-ins are back! Visit Cymon's Games at http://www.cymonsgames.com for a new game every week!
That's a pretty un-biased viewpoint.OpenGL - Very powerful, cross compatible, unmatched for 3D, no audio support.
As Elysia points out Direct3D is perfectly able to compete and in some aspects, beat, OpenGL.
In my little corner of the world I think OGL is fighting a losing battle with Direct3D. Since MS stopped supporting OGL directly as in they are not updating the core API and now everything is done with add-ins and extensions for me it makes no sense to use OGL. I believe Microsoft agreed to update the API as it matured but hasn't since version 1.0.
However to prevent a possible flame war, either OGL or D3D will do exactly what you want provided you understand how to use them. Direct3D is Microsoft's baby and it's continually cared for and updated. I would not look for it to be off the radar any time soon.
Type-ins are back! Visit Cymon's Games at http://www.cymonsgames.com for a new game every week!
Excuse me, good sirs. I would like to bring to your attention the graphics library known as libcaca. As is the case with OpenGL, it is "very powerful, cross compatible, unmatched for 3D, with no audio support." However, it is differentiated from the competition by its notably lower hardware requirements, and therefore offers the potential for a much larger target market.
From an un-biased viewpoint, I would even say that it is "equally good, if not better," than DirectX.
Just Google It. √
(\ /)
( . .)
c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.
Umm . . . what? libcaca is a text output library. Sure, you can convert it to graphics, but it's not going to look very nice.
I wouldn't say it's comparable at all.
Hardware requirements are typically based on how resource-intensive your code is, rather than the library code. I can write SDL programs that require a 2 GHz processor, or ones that run under 400 MHz.
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
dwks, i'm finding it hard to tell whether or not you noticed that my post was an obvious mockery of all the previous posts, and hardly intended to be taken seriously.
*EDIT*
Besides...
>>Umm . . . what? libcaca is a text output library.
The libcaca library is a graphics library that outputs text instead of pixels
Just Google It. √
(\ /)
( . .)
c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.