Thread: drawing using c?

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

    drawing using c?

    anyone knows any header file i could use for this?
    i've been told about graphics.h, but is there others i could use?

    ps. is drawing with c really very hard?

    tanx

  2. #2
    .........
    Join Date
    Nov 2002
    Posts
    303
    Yea it's difficult. You can either use a graphics library like opengl, allegro, directx, sdl etc, or you can access the hardware directly(no idea how to do this). If you are new to C, take the time to learn the language very well before diving into graphics and specializing in a particular area. Goodluck.

  3. #3
    Been here, done that.
    Join Date
    May 2003
    Posts
    1,164

    Re: drawing using c?

    Originally posted by ednayap
    anyone knows any header file i could use for this?
    i've been told about graphics.h, but is there others i could use?

    ps. is drawing with c really very hard?

    tanx
    Completely depends on what you want to do. For illustration, I wrote a MineSweeper clone using graphics.h on a Borland compiler. This is fairly simple.

    If you want to deal with highr level graphics like Doom, yes you'll need something else and it is much harder.
    Definition: Politics -- Latin, from
    poly meaning many and
    tics meaning blood sucking parasites
    -- Tom Smothers

  4. #4
    Registered User
    Join Date
    Jun 2003
    Posts
    8
    i only plan to draw a simple graph using some colors..
    is it advisible to use graphics.h?

  5. #5
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Originally posted by ednayap
    i only plan to draw a simple graph using some colors..
    is it advisible to use graphics.h?
    Look at my answer in this thread and simply swap the word "color" for "graphics".
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  6. #6
    Been here, done that.
    Join Date
    May 2003
    Posts
    1,164
    Originally posted by ednayap
    i only plan to draw a simple graph using some colors..
    is it advisible to use graphics.h?
    That's what it's there for, so yes
    Definition: Politics -- Latin, from
    poly meaning many and
    tics meaning blood sucking parasites
    -- Tom Smothers

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Drawing HBITMAP into CWnd, Acquired from "screenshot"
    By DeusAduro in forum Windows Programming
    Replies: 6
    Last Post: 07-02-2009, 03:41 PM
  2. Slow drawing code
    By tjpanda in forum Windows Programming
    Replies: 5
    Last Post: 05-09-2008, 05:09 PM
  3. Line Drawing Algorithm
    By Axpen in forum Game Programming
    Replies: 15
    Last Post: 08-01-2005, 06:30 PM
  4. How to do double buffing with win32 drawing?
    By Josh Kasten in forum Windows Programming
    Replies: 2
    Last Post: 03-27-2004, 12:02 AM
  5. drawing minimaps and radar screens.
    By Eber Kain in forum Game Programming
    Replies: 4
    Last Post: 03-08-2002, 11:44 AM