https://github.com/z88dk/z88dk-ext/blob ... /bgidemo.c
It's a mockup, but the results look interesting enough to start thinking at a real library.
<bgi.h> improved
<bgi.h> improved
You do not have the required permissions to view the files attached to this post.
Re: <bgi.h> improved
Small programs are very easy to port, with a bit of luck.
e.g. take the example here:
http://electrosofts.com/cgraphics/
adjust the fill style adding a line just after initgraph():
setfillstyle(SOLID_FILL,MaxColors-1);
change:
#include <graphics.h>
..into:
#include <bgi.h>
and build shrinking the picture (the original program was for a 640x480 display):
zcc +zx -lndos -DGFXSCALEX=2/5 -llib3d -create-app program.c
etc. attempting to enable the colours on setfillstye() and using the ANSI ESCape sequences:
https://www.equestionanswers.com/c/c-dos-graphics.php
Adding more fonts is technically possible.
More quick and dirty hacks:
https://github.com/sagargoswami2001/Set ... tudio-Code
..the example program, removing the floodfill calls and using a scale factor of 2/5
https://github.com/solderwire/CoolApk-Niupi/issues/1
e.g. take the example here:
http://electrosofts.com/cgraphics/
adjust the fill style adding a line just after initgraph():
setfillstyle(SOLID_FILL,MaxColors-1);
change:
#include <graphics.h>
..into:
#include <bgi.h>
and build shrinking the picture (the original program was for a 640x480 display):
zcc +zx -lndos -DGFXSCALEX=2/5 -llib3d -create-app program.c
etc. attempting to enable the colours on setfillstye() and using the ANSI ESCape sequences:
https://www.equestionanswers.com/c/c-dos-graphics.php
Adding more fonts is technically possible.
More quick and dirty hacks:
https://github.com/sagargoswami2001/Set ... tudio-Code
..the example program, removing the floodfill calls and using a scale factor of 2/5
https://github.com/solderwire/CoolApk-Niupi/issues/1
You do not have the required permissions to view the files attached to this post.