📜 ⬆️ ⬇️

Primitive graphics for lazy, oldfag and lazy oldfag

Hi, Habr. Not so long ago, I ran online on a rather unpretentious library for working with graphics in C / C ++, which can be useful for schoolchildren and students in their software research (without requiring almost any knowledge), as well as some oldfags who remember ancient as mammoth graphics for DOS. In particular, such a primitive graphic library as graphics.h for Turbo C, which is still wetly looked at by computer science teachers in schools and university programming teachers.

In short, the graphics library is such a thing from Borland that is not accepted by the standard, which can draw graphics and if you need to draw a rectangle, it does not require any monstrous constructions from pointers, vectors and other terrible things for a beginner. Simply enter rectangle () and in brackets indicate the coordinates of the upper left and right lower points of the rectangle. And that's all.

So, craftsmen were able to port this library under MinGW and a little bit to finish, screwing up normal work with the mouse and keyboard, downloading and recording image files, supporting the whole RGB palette (against 16 colors available graphics.h initially) and a few other small chips, with whom this old woman can still be useful for quickly creating primitive (and not so) graphics.

This is called Winbgim.
')
→ Download here
→ Connect and configure here

Briefly about this library:

Profit:

+ Easy to learn for a newbie.
+ Easy to connect
+ Not demanding on system resources
+ Able in any resolutions and adapters (at least under the CGA write)
+ Able to upload images without perversions
+ Knows how to mouse / keyboard events
+ Able to the full RGB palette

Fail:

- A small set of fill styles and lines (decided not by drawing primitives, but by simple loading of finished images)
- A small set of fonts for displaying text in graphic mode (fixed by referring to the Windows font files, but it requires some dances with a tambourine)

Source: https://habr.com/ru/post/455056/


All Articles