Thread: 2D Graphics - Noob Question

  1. #1
    Registered User
    Join Date
    Mar 2005
    Location
    Hampshire, England
    Posts
    8

    Unhappy 2D Graphics - Noob Question

    I'm very sorry if this sounds stupid but I've been looking for quite a while now and can't find any information on using 2D graphics with C++. I've looked on the OpenGL site and still cant find any articles relevent to me.
    I need help with getting images on screen and then moving them about. This cannot be within DOS by the way.
    I'm sorry if it has been answered anywhere before but I did look for a while.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    1. Get the latest bloodshed dev-c++ compiler - http://www.bloodshed.net/
    2. Using the packages facility, install the libSDL package.
    3. Read some libSDL tutorials - http://www.libsdl.org/tutorials.php

    LibSDL is (in part at least) a simplified interface to OpenGL, so once you're up to speed with it, the move to OpenGL should be easier.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735
    You can't make 2D graphics outside of the console with C++. You'll need to learn a graphics API. 2D with DirectX is really simple if you want to learn that.

  4. #4
    Registered User
    Join Date
    Mar 2005
    Location
    Hampshire, England
    Posts
    8

    Smile Thanks

    Thankyou for the advice, I tried to download the Bloodshed compiler but i need to get one of my friends to do it for me because I'm on dodgy dial-up at the moment .

  5. #5
    Registered User
    Join Date
    Jan 2005
    Posts
    183
    Hi , sorry for butting in.

    I find OpenGL quite handy for both 2D and 3D graphics.I've only just started learning it , so I'm nowhere near an expert , but I much prefer this over DirectX. I find it much easier to learn , and it is quite easy to program. ( Sorry to all you DirectX fans. )

    Oh , and have you tried www.nehe.gamedev.net ? This is a great website to learn OpenGL basics. This is where I am learning it at the moment.
    Last edited by Necrofear; 03-12-2005 at 01:44 PM.

  6. #6
    Linux Forever
    Join Date
    Oct 2002
    Posts
    373
    If you go via SDL, cone3d.gamedev.net has some realy good tutorials.

    I've tried OGL, but failed miserably, 6 times... yea.. i know, thats pitiful...

    Anyway, If you get abook for SDL, I suggest Focus on SDL. I use it, its really good, and it comes with all the libraries and example games on a handy-dandy CD.

    Well, Good luck!
    This war, like the next war, is a war to end war.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Noob question (redeclaring a array)
    By Demon.killer in forum C Programming
    Replies: 8
    Last Post: 10-21-2006, 12:06 PM
  2. Noobish question about graphics
    By ThWolf in forum Game Programming
    Replies: 5
    Last Post: 09-01-2006, 11:40 AM
  3. Graphics Question
    By kas2002 in forum C Programming
    Replies: 0
    Last Post: 05-24-2006, 12:38 PM
  4. A question about the old BGI graphics libary
    By p3t3r1 in forum C Programming
    Replies: 0
    Last Post: 04-30-2006, 11:19 AM
  5. C Programming 2d Array Question
    By jeev2005 in forum C Programming
    Replies: 3
    Last Post: 04-26-2006, 03:18 PM