How can i add graphics to my C progz???
Results 1 to 5 of 5

Thread: How can i add graphics to my C progz???

  1. #1
    Member
    Join Date
    Aug 2003
    Posts
    89

    How can i add graphics to my C progz???

    Hi
    I am using bloodshed dev-C++, itried searching google for anything on dos-graphics and found some sites talking about a standard graphics(and a mouse) header file,
    but i couldn't find any in my Dev librarys, so i searched for Dev dos-graphics, and found nothing of use.

    I wish not to start with DoZe-progz, because i for that i need to buy a book(in time i will), i was hoping someone would be able to help me,with easy(rather easy to learn, or jus functions) graphics, like changing from Char-mode to Graph-mode, or maybe just using bitmaps,actually any type of graphics(console).

    I checked out some library file and found CONIO.c (from CONIO.h) wich allows alot of Cursor munipulations but nothing about grapgh mode(if that is the correct term).

    Please,any help would be appreciated.
    Beware, you who seek first and final principles, for you are
    trampling the garden of an angry God and he awaits you just beyond the last theorem.

  2. #2
    Antionline Herpetologist
    Join Date
    Aug 2001
    Posts
    1,165
    If you want only DOS graphics, get Turbo C from http://community.borland.com and learn how to use BGI(Borland Graphics Interface).
    Else, search for "DOS C graphics library" in google.
    Cheers,
    cgkanchi
    Buy the Snakes of India book, support research and education (sorry the website has been discontinued)
    My blog: http://biology000.blogspot.com

  3. #3
    AntiOnline Senior Member souleman's Avatar
    Join Date
    Oct 2001
    Location
    Flint, MI
    Posts
    2,884
    \"Ignorance is bliss....
    but only for your enemy\"
    -- souleman

  4. #4
    Senior Member
    Join Date
    Oct 2001
    Posts
    786
    Well Bloodshed DevC++ can do OpenGL, but that gets into windows programming. If you only play in the main loop though (where objects are rendered, keys are pressed, etc), you could make 3d stuff, but you wouldn't understand the rest of the code since it is Windows Code... If you want to go this route, http://www.gamedev.net is a good resource, along with NeHe ( http://nehe.gamedev.net/ )

    As for graphics in DOS... I know GameDev.net ( http://www.gamedev.net ) has some Articles (or links to them) on how to make your own DOS Graphics Engine, which you probably will need to do.

    I find that programming graphics in DOS is confusing though, so I never started it, so good luck. I just played with DevC++'s OpenGL MultiMedia Projet, but that is Windows code, luckily it generates a good part for you with an example rotating polygon...

  5. #5
    Member
    Join Date
    Aug 2003
    Posts
    89
    Thanx everyone for the linx , i'm on my way now,again, thank you
    Beware, you who seek first and final principles, for you are
    trampling the garden of an angry God and he awaits you just beyond the last theorem.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •