Help with Graphics

This is a discussion on Help with Graphics within the C++ Programming forums, part of the General Programming Boards category; I know most of the basic stuff in C++, like Objects and Classes, and now I want to start using ...

  1. #1
    Registered User
    Join Date
    Jun 2007
    Location
    Canada
    Posts
    3

    Help with Graphics

    I know most of the basic stuff in C++, like Objects and Classes, and now I want to start using 2D graphics. I have NO clue where to start here, do I need to define a handler for the graphics or something? I'll probably be using .tga, and will need to use transparency.

  2. #2
    Registered User
    Join Date
    Dec 2005
    Location
    Canada
    Posts
    267

    OS: Windows 7, XUbuntu 11.10, Arch Linux
    IDE: CodeBlocks
    Compiler: GCC

  3. #3
    Registered User
    Join Date
    Jun 2007
    Location
    Canada
    Posts
    3
    Oh thanks. I guess this is in the wrong board then lol.

  4. #4
    Dr Dipshi++ mike_g's Avatar
    Join Date
    Oct 2006
    Location
    On me hyperplane
    Posts
    1,218
    I just started using SDL and so far I have found it quite easy to get to grips with. Its good for stuff like 2d games and graphics demos. Possibly the kind of stuff you are looking to create.

    You can find out about and download SDL here
    Also heres a good source of reference material for it.

  5. #5
    Registered User
    Join Date
    Apr 2007
    Posts
    102
    I'm using OpenGL currently for all graphics implementation.
    It's great for 3d programming, but I just skipped over most of the 2d.
    However it does allow for easy use with the Targa Image format. So certainly take a look, I also know it does support 2d.
    The book I'm learning from is mostly for 3d, however it does mention how to load .tga files and display them and all that good stuff.

    http://www.amazon.com/Beginning-Open...e-Programming-
    Development/dp/1592003699/ref=pd_bbs_sr_1/104-4017918-2011903?ie=UTF8&s=books&qid=1182551527&sr=8-1
    My Favorite Programming Line:
    Code:
    #define true ((rand() % 2) ? true : false)

  6. #6
    Registered User
    Join Date
    Jan 2007
    Posts
    89
    LOL...I am reading that exact same book...small world huh

    I would definately recommend it....Its not all about OpenGL it also has a nice Windows Primer...though it is in PDF format

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, 10:57 AM
  2. Graphics Programming :: Approach and Books
    By kuphryn in forum Windows Programming
    Replies: 4
    Last Post: 05-11-2004, 09:33 PM
  3. egavga.bgi problem
    By sunil21 in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 09-22-2003, 06:06 PM
  4. Graphics Devices and Cprintf clash
    By etnies in forum C Programming
    Replies: 6
    Last Post: 05-09-2002, 12:14 PM

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