简体   繁体   中英

graphics.h in CodeLite?

It was a header that was available in old Borland compilers. Used strictly for graphics in MS-Dos apps. You are at least 7 operating systems, 16 bits, 20 years and untold compiler versions removed from using it.

Yes, I know that <graphics.h> is gone. I am new to C/C++ and my knowledge is confined to the computer graphics being taught to us in college.

Is there some way I can use graphics.h in CodeLite to study the programs?

The similar level of abstraction in C can be easily reached with SDL You will want SDL_Surface to put points of Bresenham to.

I'd also recommend ClanLib for use with C++, as more convenient to start with.

Both libraries are cross-platform (and can use OpenGL as engine)

The header file mentioned in your post is part of Borland's Graphic Interface library and is most commonly associated with Turbo C++. Because of its age it is no longer officially supported by Borland. There are however alternatives like OpenBGI and WinBGI which strive to emulate the functionality of the original library on modern systems. The source code for both libraries is available as well and are usable in CodeLite projects.

As a side note the documentation is also available online.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM