Thread: Graphics help

  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    8

    Graphics help

    Hello I am interested in starting to make graphics. I know a little C++ and I want to make simple games like Pong, tetris, mario just to get a feeling for graphics in C++. Direct X and OpenGL is a bit advanced for me now. What do you recommend I use? I use DevC++ as a compiler.

  2. #2
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  3. #3
    Registered User
    Join Date
    Sep 2003
    Posts
    8
    Umm I get stuck at step 5 http://www.allegro.cc/files/install-devcpp.html. I type in the command C:\Dev-Cpp\allegro>gcc -v and it says " ' C:\Dev-Cpp\allegro' is not recognized as an internal or external command, operable program or batch file."

  4. #4
    Registered User
    Join Date
    Aug 2003
    Posts
    22
    Yeah, I got stuck near that part too, maybe try downloading the binary for Mingw? You should probably ask someone else first though, cause I don't really know very much lol.

  5. #5
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    You're supposed to go to the directory first, and then type in 'gcc -v'.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  6. #6
    Registered User
    Join Date
    Sep 2003
    Posts
    8
    What do you mean go there? I typed in "C:\Dev-Cpp\allegro>gcc -v".

  7. #7
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Another option is SDL, or if you're using Windows and don't mind a bit of un-intuitive code, Windows GDI.
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  8. #8
    Registered User
    Join Date
    Sep 2003
    Posts
    8
    I want to use allegro but can't get to work. Unless someone can tell my step by step what I do I have no clue what im doing. I have XP.

  9. #9
    The Defective GRAPE Lurker's Avatar
    Join Date
    Feb 2003
    Posts
    949
    First type in "cd C:\Dev-Cpp\allegro", then type in gcc -v filename.cpp
    Do not make direct eye contact with me.

  10. #10
    Registered User
    Join Date
    Sep 2003
    Posts
    8
    I am stuck at step 7: Now, to installing Allegro: type make install at the command prompt. Note that some poeple seem to have trouble at this step. Make sure your MINGDIR has been set. You can manually do it by typing SET MINGDIR=C:\Dev-Cpp before running make install.

    Ok, now that Allegro is properly set up and installed, we can create our first Allegro program (yay!)

    I get this when I type in make install with dir set to c:\dev-cpp\allegro " 'make'not recognized as an internal or external command, operable program or batch file."

  11. #11
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Perhaps you should try something that's easier to set up?
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  12. #12
    Registered User
    Join Date
    Sep 2003
    Posts
    8
    Like what? i want it simple, but so I can make more than a simple pong game. I want to eventually make a Real Time Strategy Game.

  13. #13
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Real Time Strategy? As in Warcraft? I was about to suggest GDI since for that you only need to #include <windows.h>, but it's not exactly prime game-making material. Allegro would probably be more suited for that, but you're having trouble setting it up. Other options include:

    SDL
    DirectX (DirectDraw7 or DirectGraphics a.k.a. Direct3D)
    OpenGL (Not sure where you can get a 2D tutorial)
    ClanLib (?)

    There's probably others, but those are the ones I can think of for the moment.
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  14. #14
    Registered User
    Join Date
    Sep 2003
    Posts
    8
    I want something easy. Im just starting off with graphics in c++ and Direct X is a bit hard for me now.

  15. #15
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    GDI isn't intuitive, but is relatively simple once you get the hang of it. Windows is practically built around it so one day you'll probably have to learn to use it anyways. But it's not particularly easy to pick up and learn.

    SDL is cross-platform and faster than GDI and is easier to use (or so I hear).

    With ClanLib I've only heard the name.

    Take your pick, or figure out how to install allegro
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Turtle Graphics, how does it work?
    By freddyvorhees in forum C++ Programming
    Replies: 15
    Last Post: 08-28-2009, 09:57 AM
  2. Graphics Programming :: Approach and Books
    By kuphryn in forum Windows Programming
    Replies: 4
    Last Post: 05-11-2004, 08:33 PM
  3. egavga.bgi problem
    By sunil21 in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 09-22-2003, 05:06 PM
  4. Graphics Devices and Cprintf clash
    By etnies in forum C Programming
    Replies: 6
    Last Post: 05-09-2002, 11:14 AM