Need a 2D graphics library with following reqs

This is a discussion on Need a 2D graphics library with following reqs within the Game Programming forums, part of the General Programming Boards category; Hi, everyone. For a class assignment, I've been googling for a good 2D graphics or GUI library with the following ...

  1. #1
    Registered User
    Join Date
    Nov 2005
    Posts
    1

    Need a 2D graphics library with following reqs

    Hi, everyone. For a class assignment, I've been googling for a good 2D graphics or GUI library with the following requirements, but no luck so far. It must do the following:

    *Work in C++
    *Can be used with NO classes (we're not allowed to use classes yet in our programs)
    *Work in Linux and Windows
    *Have good documentation/tutorials

    It's for a simple bingo game. The ideas for the bingo game are the following:

    *Must have the capability to create 2D boxes or frames within windows
    *Must be able to change color when selecting a button within a window

    Ideally, it would be nice to have a Designer program within it that generates code, but this is not necessary.

    And that's it. I've looked at various GUI and Graphics products Qt, GTK, SDL, and various others. Maybe I've been careless in looking for what I'm doing, but I haven't found anything satisfactory yet.

    Thanks for everything.

    -bigdreamer

  2. #2
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    964
    use a turbo c++ compiler

    use dos.h

    dos has its own graphics stuff
    Sometimes I forget what I am doing when I enter a room, actually, quite often.

  3. #3
    Registered User
    Join Date
    Oct 2005
    Posts
    43
    Quote Originally Posted by bigdreamer
    Hi, everyone. For a class assignment, I've been googling for a good 2D graphics or GUI library with the following requirements, but no luck so far. It must do the following:

    *Work in C++
    *Can be used with NO classes (we're not allowed to use classes yet in our programs)
    *Work in Linux and Windows
    *Have good documentation/tutorials

    It's for a simple bingo game. The ideas for the bingo game are the following:

    *Must have the capability to create 2D boxes or frames within windows
    *Must be able to change color when selecting a button within a window

    Ideally, it would be nice to have a Designer program within it that generates code, but this is not necessary.

    And that's it. I've looked at various GUI and Graphics products Qt, GTK, SDL, and various others. Maybe I've been careless in looking for what I'm doing, but I haven't found anything satisfactory yet.

    Thanks for everything.

    -bigdreamer

    In dos, use the non-standard header conio, supplied with most compilers nowadays. Although it doesn't allow you to create boxes, it does allow you do change colours, and you can form boxes with |, -, etc.

    If you really, really want to be able to draw stuff, see

    http://www.cprogramming.com/tutorial/tut1.html.

    Adam.

  4. #4
    C(++)(#)
    Join Date
    Jul 2004
    Posts
    309
    I'm not positive, but I don't think dos.h works on Linux.
    To code is divine

  5. #5
    Dae
    Dae is offline
    Deprecated Dae's Avatar
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    1,034
    Would SDL work?
    Warning: Have doubt in anything I post.

    GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

  6. #6
    Registered User
    Join Date
    Sep 2003
    Posts
    34
    Have you had a chance to look at Allegro? From what I've seen it's simple and it will work in dos, win and linux.
    -gunder

    if (problem)
    postcount++;

  7. #7
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    Quote Originally Posted by Dae
    Would SDL work?
    SDL works on windows and linux but it dosen't have a pre-built GUI so you would need to write your own. Writing a simple GUI is a good learning excersisie IMHO.

  8. #8
    the Great ElastoManiac's Avatar
    Join Date
    Nov 2005
    Location
    Republika Srpska - Balkan
    Posts
    377
    What???, Are you all crazy, Dos sucks !!!!
    Althought it didn't before ten years.

    Use Win GDI, it's the best.
    Or you could use Allegro, But Win is the best.
    Allegro also supports audio and key/joystick input,
    and it can run on nearly anything... ( just like java )
    lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu

  9. #9
    Registered User
    Join Date
    Sep 2003
    Posts
    34
    Quote Originally Posted by ElastoManiac
    Use Win GDI, it's the best.
    The only problem with the Win GDI is that it doesn't tend to work very well under linux .
    -gunder

    if (problem)
    postcount++;

  10. #10
    Amazingly beautiful user.
    Join Date
    Jul 2005
    Location
    If you knew I'd have to kill you
    Posts
    254
    I'd use SDL with a third party GUI library.
    Do a google search for ParaGUI.
    Programming Your Mom. http://www.dandongs.com/

  11. #11
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    Quote Originally Posted by gunder
    The only problem with the Win GDI is that it doesn't tend to work very well under linux .
    There's always WINE

  12. #12
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,586
    No classes and they want a GUI? Dumb. Definitely a school project.

    Windows being the perfect example of what you get when you try to do a GUI without using C++.

  13. #13
    the Great ElastoManiac's Avatar
    Join Date
    Nov 2005
    Location
    Republika Srpska - Balkan
    Posts
    377
    well, windows could use some classes...
    lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu

  14. #14
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,586
    Windows is a mess. It could use a major overhaul, which I might add they have not done in any version of their recent OS's, yet still charge like they have completely redone the whole thing. Marketing.

    You can code a GUI without classes but I hope they allow you to use structs. Without that you are going to be doing a lot of parameter passing and it will be a huge mess.

  15. #15
    the Great ElastoManiac's Avatar
    Join Date
    Nov 2005
    Location
    Republika Srpska - Balkan
    Posts
    377
    Everything is a mess. Maybe C# is solution to windows without classes?
    lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu

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

Similar Threads

  1. Need simple C graphics library
    By Sharke in forum C Programming
    Replies: 4
    Last Post: 02-16-2009, 09:25 PM
  2. free 2d graphics engine for Dev C++?
    By two31d in forum C++ Programming
    Replies: 3
    Last Post: 11-29-2005, 05:48 AM
  3. Graphics library and header
    By Zagaberoo in forum C++ Programming
    Replies: 1
    Last Post: 03-28-2004, 05:43 PM
  4. 2D Graphics In Game
    By drdroid33 in forum Game Programming
    Replies: 16
    Last Post: 02-23-2002, 09:01 PM
  5. allegro graphics library for linux
    By oldcoyote in forum Linux Programming
    Replies: 3
    Last Post: 10-03-2001, 10:24 AM

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