Dos graphics header

This is a discussion on Dos graphics header within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Are there any header files that will allow you to make graphics in Dos games??? I found a conio.c file ...

  1. #1
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200

    Question Dos graphics header

    Are there any header files that will allow you to make graphics in Dos games??? I found a conio.c file whic allowed me to change tex color and use gotoxy. But how about graphics?
    What is C++?

  2. #2
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,586
    If you have a Borland DOS compiler you can use graphics.h

    But this uses BGI graphics which I don't recommend. If you have a DOS compiler, create your own graphics library.

    www.brackeen.com will get you started.

  3. #3
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Originally posted by Bubba
    If you have a DOS compiler, create your own graphics library.
    Hehe, this is always so helpful to the newbs
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  4. #4
    Nerd Xmevs's Avatar
    Join Date
    Apr 2002
    Posts
    146
    conio.h you say?
    Can you change the background of the entire screen with that? or do one have to make <space> all over the page to make that happen?

  5. #5
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200

    no

    it will not do the whole screen.


    Or as far as I know anyay.
    What is C++?

  6. #6
    I'm Back
    Join Date
    Dec 2001
    Posts
    556
    >>Can you change the background of the entire screen with that

    Yes, you can. use the textbackground().

    i do it like this...

    Code:
    --
    --
    textbackground(4); //4 means RED
    clrscr();
    
    //do stuff with red background
    
    textbackground(0); //0 is orignal DOS color BLACK
    clrscr();
    --
    --

  7. #7
    Nerd Xmevs's Avatar
    Join Date
    Apr 2002
    Posts
    146
    I have borland c++ builder 4 (it came as free full version without support in a pc-mag, so I don't bother buying a newer version) and the help system doesn't focus too much on console apps. is there anywhere I can find any reference to conio functions?

  8. #8
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200
    I just opened up the conio.c file and looke ant all the voids and that told me every thing.
    What is C++?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 03:25 PM
  2. real mode dos & win dos
    By scott27349 in forum A Brief History of Cprogramming.com
    Replies: 26
    Last Post: 08-19-2002, 06:15 AM
  3. Dos Graphics
    By matbrady in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 04-12-2002, 10:04 AM
  4. DOS program versus DOS console program
    By scromer in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 01-10-2002, 12:42 PM

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