Thread: C++ library

  1. #1
    Lariumentiko
    Guest

    C++ library

    Hey everybody. I've been working with c++ for a while and im looking for a gamedevelopment library. Got any?

  2. #2
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    Doh! Another GFX lib topic, sich....

    Oke whe have:

    Allegro Easy, Portable, written in C
    ClanLib Supporting many languages,written in C++,supporting OpenGL
    SDL Supporting OpenGL, used in cormercial games, Portable, Written in C++
    AllegroGL To be used along with Allegro to support OpenGL, Written in C,Easy,Portable, In it's very early stages and thus a little unstable and buggy

  3. #3
    napKINfolk.com napkin111's Avatar
    Join Date
    Apr 2002
    Posts
    310
    Left out DX and OpenGL.

    I would suggest SDL for 2D graphics. I'm currently making a zelda-ish game with it and its going well thus far.

    //napKIN
    "The best way to get answers is to just keep working the problem, recognizing when you are stalled, and directing the search pattern.....Don’t just wait for The Right Thing to strike you – try everything you think might even be in the right direction, so you can collect clues about the nature of the problem."
    -John Carmack

  4. #4
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    Originally posted by napkin111
    Left out DX and OpenGL.
    Ya, but i assumed he wanted an easy way to create gfx for
    games

  5. #5
    Registered User
    Join Date
    Sep 2002
    Posts
    69
    I thought that SDL was done in C? Either way, it works just fine in C++ (that's what I use).

    It also has some sort of support for OpenGL, and it sure makes it look easier... I don't know 3D programming at all yet, but it sure looks simpler.

    Anyhow, yeah.
    D. Olson
    The Mandrake eXPerience
    Battle Pong

    IDE: kate 2.0
    Compiler: gcc 3.2
    Graphics/Input/Net: SDL 1.2.5 (pdf)
    3D Audio: OpenAL (pdf)


    I am a signature virus. Please add me to your signature so that I may multiply

  6. #6
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    SDL is in C
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  7. #7
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    Originally posted by Travis Dane
    Ya, but i assumed he wanted an easy way to create gfx for
    games
    DX and OpenGL are easy.

  8. #8
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    Originally posted by SilentStrike
    SDL is in C
    oh? hmm, im sure i saw some classes in SDL

    DX and OpenGL are easy.
    Everything is relative - Travis Dane (and einstein)

  9. #9
    Registered User
    Join Date
    Feb 2002
    Posts
    93

    Hmm.. i'm confused

    I am confused about all these game development things.. can someone help me out? I went to SDL website and read some stuff on it but I am not really sure what it is... I currently program OpenGL using Win32 i guess?!?!?.. is this not a good way to do game programming? is it slow.. or is it good but just harder than things such as SDL..? anyone clear this up for me I would appreciate it thnx... GLUT? GLU? SDL? ALLEGRO? whats going on..

  10. #10
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    Those are all library's that make things easyer, like creating
    a window setting the resolution and size all in 1 command,
    basicly its just for people who dont feel like having to write
    hundreds of lines of code to accomplish a simple bitmap blit

  11. #11
    Registered User
    Join Date
    Feb 2002
    Posts
    93

    thnx

    Thanx.. that clears things up.. thought thats what these were but wasn't sure... wouldn't that mean that SDL and such would be slower?? since you weren't writing all the code yourself wouldn't there be alotta code implemented into your program that you would never be using? trying to decide if its worth switchin' over to one of these or not...

  12. #12
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    Well thats one reason why theyre slower then genuine code,
    but lots of librarys (allegro,sdl) where developed to work
    for cross-platforms and programming-languages, so are not
    specificly optimized for your compiler,platform and language.
    If your keeping programming to a hobby its okay to use lib's,
    if you want to make a proffesion out of it, you're bound to
    have to learn Win32 or OpenGL one day, so take your pick.

  13. #13
    Attack hamster fuh's Avatar
    Join Date
    Dec 2002
    Posts
    176
    I'm learning SDL, and it won't compile for me. It looks easy, but is hard to compile( for me). But that doesn't mean you shouldn't try it.
    Last edited by fuh; 01-17-2003 at 03:55 PM.
    Stupid things pop singers say

    "I get to go to lots of overseas places, like Canada."
    - Britney Spears

    "I love what you've done with the place!"
    -Jessica Simpson upon meeting the Secretary of Interior during tour of the White House

  14. #14
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    Originally posted by fuh
    I'm learning SDL, and it won't compile for me. It looks easy, but is hard to compile( for me).
    Try allegro, its even more easyer (<- that spelled wrong?)
    then SDL

  15. #15
    Attack hamster fuh's Avatar
    Join Date
    Dec 2002
    Posts
    176
    Originally posted by Travis Dane
    easyer (<- that spelled wrong?)
    Yes. Its easier. And its 'than', not 'then' SDL.
    Stupid things pop singers say

    "I get to go to lots of overseas places, like Canada."
    - Britney Spears

    "I love what you've done with the place!"
    -Jessica Simpson upon meeting the Secretary of Interior during tour of the White House

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What's an import library?
    By chiefmonkey in forum C++ Programming
    Replies: 1
    Last Post: 06-19-2009, 05:00 PM
  2. Property Set Library (PSL) - Announcement
    By vultur_gryphus in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 05-29-2008, 06:04 AM
  3. Makefile for a library
    By sirmoreno in forum Linux Programming
    Replies: 5
    Last Post: 06-04-2006, 04:52 AM
  4. very weird .h problem
    By royuco77 in forum C++ Programming
    Replies: 1
    Last Post: 09-11-2005, 07:55 AM
  5. better c string functions
    By samps005 in forum C Programming
    Replies: 8
    Last Post: 11-04-2003, 01:28 PM