graphics in c

This is a discussion on graphics in c within the C Programming forums, part of the General Programming Boards category; Hi everybody, I want to learn drawing a line, circle e.t. and writing a text anywhere on screen. Can you ...

  1. #1
    Registered User
    Join Date
    Apr 2005
    Posts
    6

    graphics in c

    Hi everybody,

    I want to learn drawing a line, circle e.t. and writing a text anywhere on screen. Can you help me, please?

    My compiler is M.Visual C++.

    thanks in advance,

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,851
    dos.h
    Still the same answer - so stop asking the same questions already.
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    People Love Me
    Join Date
    Jan 2003
    Posts
    412
    Try OpenGL. It's portable and very nice. Learn how to use it from here. In my opinion, this is the best book there is to learn OpenGL with...of course, I want to be a game programmer, so of course I think that.

    OpenGL has become the standard for graphics, and a good portion of video game developers (probably) use it for graphics routines since it can accomplish more (graphics wise) than DirectX...and it's more portable too.
    Last edited by Krak; 05-30-2005 at 10:29 AM.

  4. #4
    Registered User
    Join Date
    Mar 2005
    Posts
    11
    krak, those are some good references, but i have a question..

    all the tutorials i have seen #include glaux.h, which doesn't seem to come with devcpp, also, my google searches always return results about 'downloading' source code that uses 'glaux.h', where can i download this library?

  5. #5
    * Death to Visual Basic * Devil Panther's Avatar
    Join Date
    Aug 2001
    Posts
    768
    joecaveman, you should leave DevC++ and move on to something alittle more professional, like Visual C++ and Borland C++ 5.5 (my love )
    they have what you're looking for.
    "I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

    http://www.Bloodware.net - Developing free software for the community.

  6. #6
    ---
    Join Date
    May 2004
    Posts
    1,379
    There is nothing unprofessional about a good strong freeware compiler like Dev-C++(gcc). I prefer to use it over my copy of VC++6 and BCB6.
    joecaveman: Go to tools -> Check for Updates/Packages
    You will find glaux in there. However I recomend using OpenIL to load images instead.

  7. #7
    People Love Me
    Join Date
    Jan 2003
    Posts
    412
    I like Dev-C++...It's much more light-weight than the enormous Visual-C++...and it does its job just as well. You can have it downloaded, installed, and running within one minute, but downloading and installing MSVC++ takes ages.
    Last edited by Krak; 05-30-2005 at 11:10 PM.

  8. #8
    Registered User
    Join Date
    Apr 2005
    Posts
    6
    Thanks evrybody for your advice.
    Best wishes,

  9. #9
    * Death to Visual Basic * Devil Panther's Avatar
    Join Date
    Aug 2001
    Posts
    768
    I agree DevC++ is nice, but as you said it yourself, it's light weighted.
    for example, goodluck finding glaux.h there.
    "I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

    http://www.Bloodware.net - Developing free software for the community.

  10. #10
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,048
    I think you can download glaux.h for Dev-C++. Don't ask me where, I saw it somewhere on the game programming board.

  11. #11
    * Death to Visual Basic * Devil Panther's Avatar
    Join Date
    Aug 2001
    Posts
    768
    what i'm trying to say is why bother? I mean I like DevC++, it was one of my first compilers, and I still prefer to use their old IDE, but I compile with Borland, which is also free!
    "I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

    http://www.Bloodware.net - Developing free software for the community.

  12. #12
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,048
    That's a good idea. Can you set up Dev-C++ to use Borland? I know you can use Cygwin instead of Mingw.

  13. #13
    * Death to Visual Basic * Devil Panther's Avatar
    Join Date
    Aug 2001
    Posts
    768
    That's not what i meant.

    I use the DevC++'s old IDE because it's one of the only IDEs left that don't put tabs instead of spaces, so i can edit the code later on with any other IDE and it will look ok, and the code won't shift left and right!

    So what I do is write the code in DevC++'s IDE, and then compile it with Borland C++ 5.5 command line, using the makefile!

    But if you want the IDE to compile with borland by a click of a button, you can reverse engeneer DevC++ to make it run borland's make command-line program on a local makefile.
    "I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

    http://www.Bloodware.net - Developing free software for the community.

  14. #14
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,048
    Yes, I use the old version too. I think it's version 4.

    Just wondering how you did it. That's how I program in Perl.

  15. #15
    * Death to Visual Basic * Devil Panther's Avatar
    Join Date
    Aug 2001
    Posts
    768
    i didn't actually reverse eng. DevC++, i'm pretty much sure it could be done, i just don't see the need to work hard to make it compile by a press of a button...

    That's how I program in Perl
    what? that you compile the perl code with the command line?!
    Well, you have to! Perl is a script language, you need to "re-compile" it every time you run it.
    Last edited by Devil Panther; 05-31-2005 at 01:24 PM.
    "I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

    http://www.Bloodware.net - Developing free software for the community.

Page 1 of 2 12 LastLast
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