Graphic Libraries for C++

This is a discussion on Graphic Libraries for C++ within the Game Programming forums, part of the General Programming Boards category; Does anybody know of some good graphic libraries for c++? I am using Borland Builder X. If that helps any....

  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    7

    Graphic Libraries for C++

    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.

  2. #2
    Registered User
    Join Date
    Nov 2007
    Posts
    57
    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.

  3. #3
    Registered User
    Join Date
    Jun 2008
    Posts
    7
    Will this work with borland builder X?

  4. #4
    ---
    Join Date
    May 2004
    Posts
    1,379
    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?

  5. #5
    Registered User
    Join Date
    Jun 2008
    Posts
    7
    Yes I was hoping to use just a simple one But this one does not support graphics.

  6. #6
    Registered User
    Join Date
    Oct 2006
    Location
    UK/Norway
    Posts
    485
    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?

  7. #7
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    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.

  8. #8
    Registered User
    Join Date
    Jan 2008
    Posts
    70
    I would go with MSVC, code::blocks is a bit tough to set up, and I've had bad experiences with DevC++.

  9. #9
    Registered User guesst's Avatar
    Join Date
    Feb 2008
    Location
    Lehi, UT
    Posts
    179
    Quote Originally Posted by dwks View Post
    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.
    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!

  10. #10
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,452
    OpenGL is not unmatched. DirectX is equally good, if not better. However, it is not cross compatible.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  11. #11
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    OpenGL - Very powerful, cross compatible, unmatched for 3D, no audio support.
    That's a pretty un-biased viewpoint.

    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.

  12. #12
    Registered User guesst's Avatar
    Join Date
    Feb 2008
    Location
    Lehi, UT
    Posts
    179
    Quote Originally Posted by Elysia View Post
    OpenGL is not unmatched. DirectX is equally good, if not better. However, it is not cross compatible.
    My mistake. I guess I don't generally even consider a library if it's not cross compatible, but that's a really honking big bias I need to get over, really.
    Type-ins are back! Visit Cymon's Games at http://www.cymonsgames.com for a new game every week!

  13. #13
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    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.

  14. #14
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    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.

  15. #15
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    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.

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 7
    Last Post: 05-13-2008, 03:47 AM
  2. MinGW thread-safe runtime libraries
    By Mario F. in forum C++ Programming
    Replies: 3
    Last Post: 08-21-2006, 08:15 AM
  3. Resource ICONs
    By gbaker in forum Windows Programming
    Replies: 4
    Last Post: 12-15-2003, 06:18 AM
  4. Linux Graphic Libraries You Use?
    By drdroid in forum Linux Programming
    Replies: 2
    Last Post: 10-06-2003, 07:34 PM
  5. Libraries and headers
    By darksaidin in forum C++ Programming
    Replies: 10
    Last Post: 07-23-2003, 06:24 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21