BGI Graphics

This is a discussion on BGI Graphics within the C++ Programming forums, part of the General Programming Boards category; Does anyone have any tutorials on BGI Graphics?...

  1. #1
    Student drdroid's Avatar
    Join Date
    Feb 2002
    Location
    Montreal, Quebec
    Posts
    669

    Question BGI Graphics

    Does anyone have any tutorials on BGI Graphics?

  2. #2
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200
    Good question...
    Pepole in here will tell you just to look in the graphics.h file and figure it out... they say " thats how i learned".
    What is C++?

  3. #3
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Well, BGI (Basic Graphics Interface???) graphics sucks IMHO. It is slow and buggy.
    I would suggest learning VGA (Video Graphics Array) graphics, including mode 13 which IMO is the easiest graphics mode to learn.
    There is a pretty good tutorial at www.brackeen.com (http://www.brackeen.com/home/vga/index.html).
    Try it out and feel welcome to ask questions if you need it .
    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
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200
    but im sooo used to C++ and isnt this in C ?
    What is C++?

  5. #5
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Originally posted by Vicious
    but im sooo used to C++ and isnt this in C ?
    You can do VGA/Mode13 in C++ if you like
    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.

  6. #6
    Registered User JoshG's Avatar
    Join Date
    Mar 2002
    Posts
    326
    If you have Turbo C++ 3.0 (which is free), it comes with a good help file that has descriptions of all the functions and datatypes in graphics.h, you don't have to just open the file and look. To bring up help run turbo c++ and right click somewhere, or click the help menu to the top-right of the screen.

  7. #7
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Vicious, that avatar you have. It's hard to see, but isn't it Legato Bluesummers from Trigun?
    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.

  8. #8
    Registered User
    Join Date
    Feb 2002
    Posts
    20

    Graphics

    For Graphics in MS-DOS or Windows I use allegro. It has some of the more advanced features i'm to lazy to try and impliment myself. Allegro Home Page. it's also fairly easy to use with a good online help.

  9. #9
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200
    >> Vicious, that avatar you have. It's hard to see, but isn't it Legato Bluesummers from Trigun?

    Nope, it Vicious from Cowboy Bebop... ( oh crap, i see the res.. how they look alike).

    Anyway it looked better on LCD than VGA
    What is C++?

  10. #10
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200
    Oh, is there a example program I could look at? Using the VGA or Mode13h?
    What is C++?

  11. #11
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    Do you have a picture of the main character dude (I haven't saw the show in a while, I forget his name)

    Also any links? I just love that show.

  12. #12
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Originally posted by Vicious
    Oh, is there a example program I could look at? Using the VGA or Mode13h?
    There are tutorials at www.Brackeen.com, and if you want an example program, follow the link in my signature .
    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.

  13. #13
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200
    Well.. how about with MSVC++?
    Will this work?

    (im thinking about getting it)
    What is C++?

  14. #14
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Originally posted by Vicious
    Well.. how about with MSVC++?
    Will this work?

    (im thinking about getting it)
    Well, VGA mode 13 is mainly DOS based, and I don't know if MSVC++ supports DOS.
    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.

  15. #15
    Registered User Liam Battle's Avatar
    Join Date
    Jan 2002
    Posts
    114
    I know the the MSVC++ 6.0 compiler has cut out dos graphics, it only supports win32 console graphics.. (text crap).

    You maybe able to get around it but im not sure.. just remember reading that it cut out dos graphics.

    I personnally never implement a VGA GDI in my console apps... i just use text base... and if im in windows just use the windows GDI or Direct3d / OpenGL...
    ( haha ever seen a server app in an OpenGL GDI)?
    LB0: * Life once school is done
    LB1: N <- WakeUp;
    LB2: N <- C++_Code;
    LB3: N >= Tired : N <- Sleep;
    LB4: JMP*-3;

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem with BGI graphics: Linker Error
    By darklord1984 in forum C++ Programming
    Replies: 9
    Last Post: 11-10-2007, 10:16 AM
  2. A question about the old BGI graphics libary
    By p3t3r1 in forum C Programming
    Replies: 0
    Last Post: 04-30-2006, 11:19 AM
  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. Graphics In C (BGI)
    By GaPe in forum C Programming
    Replies: 6
    Last Post: 01-01-2002, 03:45 AM

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