Borland C++ BGI

This is a discussion on Borland C++ BGI within the Game Programming forums, part of the General Programming Boards category; Alright...I'm now using Borland Turbo C++ 3.1's BGI Graphics Library. First off, does anyone know where I can get all ...

  1. #1
    Intranasal Heroin User Xterria's Avatar
    Join Date
    Sep 2001
    Location
    Buffalo, NY
    Posts
    1,035

    Borland C++ BGI

    Alright...I'm now using Borland Turbo C++ 3.1's BGI Graphics Library. First off, does anyone know where I can get all the BGI and CHR files and such? And another thing, is there a way of loading a bitmap through the library? I saw a function called putimage(), but I don't know how to use it. Can anyone help? Thanks.

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    380
    Wouldn't those files be located in the BGI folder? atleast they are for Borland 4.5 .

  3. #3
    Intranasal Heroin User Xterria's Avatar
    Join Date
    Sep 2001
    Location
    Buffalo, NY
    Posts
    1,035
    well they aren't for 3.1...I searched all of my Borland Directory and theres nothing for BGI. But my largest concern is the bitmap loading! there's no reason for BGI If you can't do graphics. someone help!

  4. #4
    Registered User
    Join Date
    Oct 2001
    Posts
    375
    I believe www.simtel.net had a lot of those.. don't know about the loading bitmap thing. You might consider using the free Borland 5.5 compiler or Dev-C++ (also free, with IDE and mingw32 compiler). Graphics etc are a lot easier with more options than doing the old DOS stuff anyway. I always have thought so anyway, because to do good DOS stuff is so darn video card dependent...
    Allegro precompiled Installer for Dev-C++, MSVC, and Borland: http://galileo.spaceports.com/~springs/

  5. #5
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    ...because to do good DOS stuff is so darn video card dependent...
    Yes, but there are functions which will allow you to enumerate the video modes supported on each card. You can also determine if the card uses 565 or 555 RGB for 16-bit color by looking at the correct data in the structure filled by GetSVGAModeInfo from RBIL.

  6. #6
    Registered User
    Join Date
    Oct 2001
    Posts
    375
    Hm, well, when I was doing that stuff I could never find enough references to let me do what I wanted to do. Maybe that has changed. Still, set_color_depth(32) and then have all the capabilities of hardware acceleration is a pretty tempting offer to me.
    Allegro precompiled Installer for Dev-C++, MSVC, and Borland: http://galileo.spaceports.com/~springs/

  7. #7
    Intranasal Heroin User Xterria's Avatar
    Join Date
    Sep 2001
    Location
    Buffalo, NY
    Posts
    1,035
    thanks...so any idea how to load a bitmap?

  8. #8
    Registered User
    Join Date
    Oct 2001
    Posts
    375
    I don't know how with BGI. You could always write your own code after looking at the .bmp file format info. In Windows there are a myriad of ways, I prefer using Allegro's routines. http://alleg.sourceforge.net/
    Allegro precompiled Installer for Dev-C++, MSVC, and Borland: http://galileo.spaceports.com/~springs/

  9. #9
    Intranasal Heroin User Xterria's Avatar
    Join Date
    Sep 2001
    Location
    Buffalo, NY
    Posts
    1,035
    reality check.
    I already know how to load a bitmap normally, but how the heck do i do it with BGI? No bitmap will normally show when the program is in BGI's graphics mode

  10. #10
    Registered User
    Join Date
    Oct 2001
    Posts
    375
    I already know how to load a bitmap normally
    Then what's the problem? Plot the pixels for the bitmap image you've loaded.
    Allegro precompiled Installer for Dev-C++, MSVC, and Borland: http://galileo.spaceports.com/~springs/

  11. #11
    Intranasal Heroin User Xterria's Avatar
    Join Date
    Sep 2001
    Location
    Buffalo, NY
    Posts
    1,035
    I'm just going to forget BGI....there is obviously no way to load a bitmap with it. And plotting pixels the old way screws up the program.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. BGI Error:
    By it4_saravana in forum C Programming
    Replies: 4
    Last Post: 04-12-2008, 02:48 AM
  2. BGI and text cursor
    By Somnambulist in forum C++ Programming
    Replies: 4
    Last Post: 01-21-2004, 06:54 PM
  3. BGI Graphics in Windows API
    By AtomRiot in forum Windows Programming
    Replies: 1
    Last Post: 07-29-2003, 05:32 PM
  4. BGI Error: Graphics not initialized (use 'initgraph');
    By Jasin14 in forum C Programming
    Replies: 4
    Last Post: 10-02-2002, 12:58 PM
  5. BGI C Help!!!!
    By Deseis in forum C Programming
    Replies: 2
    Last Post: 01-01-2002, 02:19 PM

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