Thread: Graphics

  1. #1
    Registered User
    Join Date
    Jul 2007
    Posts
    75

    Graphics

    I am pretty new to C++. I want to start to put graphics in my programs. Can you point me to some toutorials that might be good for ma (a beginner).

  2. #2
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    First, its is important for you to know that there are no graphics, color, mouse, or sound in ANSI/ISO Standard C++.

    This means that you need an additional library for graphics, and your program will depend on the graphics library you choose. If somebody gives you a graphics example, and you use a different library, it won't work for you. (Your compiler probably already includes a graphics library).

    Cprogramming.com has an OpenGL Tutorial. I've never used OpenGL, but I've done some graphics with the WinAPI (Microsoft Windows). It's fairly easy to draw simple shapes with the WinAPI, and any Windows compiler can do it. But, first you need a Windows GUI program, and there is a fair amount of Windows-specific (non-standard) code required just to create a Window, and Windows programming isn't really for beginners.

    P.S.
    Before you use any special-purpose library, you generally need a good understanding of functions, structures, pointers, typedefs, etc. If you are an absolute beginner, it's probably too soon to try using a graphics library. But, it's OK to start doing some research and looking at examples & documentation.
    Last edited by DougDbug; 01-10-2008 at 07:49 PM.

  3. #3
    Registered User
    Join Date
    Dec 2007
    Location
    Rochester
    Posts
    40
    there is a fair amount of Windows-specific (non-standard) code required just to create a Window, and Windows programming isn't really for beginners.
    I just started trying to learn that, and I agree fully with you, it is not for begginers ( aka me)

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