Greg King
410e4502ee
Added a 160x192x2 TGI (graphics) driver to the VIC-20 library.
...
The driver requires a special linker configuration: "vic20-tgi.cfg".
The VIC-20 computer needs at least 8K of expansion RAM!
"tgidemo.c" needed to be adjusted because the VIC-20's vertical (y) range is greater than its horizontal (x) range -- the opposite of most other platforms. Also, the circle demo would jam on the VIC-20.
2020-07-08 05:55:30 -04:00
Greg King
14c62f1368
Allowed the TGI API to support 256 colors.
2020-06-04 12:58:05 -04:00
Oliver Schmidt
d7afadb2fe
Factored out target specific inclusion of target header.
...
So far conio.h included the target header to get the CH_... and COLOR_... macros. However tgi.h never did the same to get the TGI_COLOR_... macros. And some time ago the JOY_..._MASK macros moved from joystick.h into the target header yet joystick.h didn't include the target header.
Why wasn't that issue detected so far? Because about every program using TGI and/or the joystick uses CONIO too and therefore includes the target header that way.
However, conceptually it's clean to factor out the target header inclusion and have tgi.h and joystick.h do it like conio.h.
Apart from that user code may make direct use of target.h too.
2018-02-02 12:59:05 +01:00
Greg King
0390c34e88
Changed multi-line C comments into another style.
...
The left side doesn't look unbalanced.
2014-06-30 16:51:07 -04:00
Oliver Schmidt
c6ee9ac034
Classified tgi_imulround() as part of TGI API.
2014-03-27 19:31:18 +01:00
Oliver Schmidt
85885001b1
Removed (pretty inconsistently used) tab chars from source code base.
2013-05-09 13:57:12 +02:00
uz
0dc4f64cfe
tgi_free_vectorfont maps to free and must therefore be fastcall.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@5970 b7a2c559-68d2-44c3-8de9-860c34a00d81
2013-01-27 14:39:35 +00:00
ol.sc
6860ac7dfd
Introduced static standard drivers.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@5891 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-11-01 19:53:47 +00:00
ol.sc
d1e7773245
Adjustments to recent adding of get/set prefix to tgi function names.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@5305 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-11-29 21:36:42 +00:00
uz
edca940a86
Declaration of tgi_settextdir() added.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@5101 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-07-31 22:17:21 +00:00
uz
9c55586569
Renamed tgi_textheight -> tgi_gettextheight, tgi_textwidth -> tgi_gettextwidth
...
tgi_textstyle -> tgi_settextstyle and tgi_textscale -> tgi_settextscale.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5090 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-07-17 18:36:12 +00:00
uz
e531e5abd1
Removed __fastcall__ declarations for functions without parameters.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@5073 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-07-07 20:19:35 +00:00
ol.sc
4aa00e84e1
Removed tgi_load() and all corresponding infrastructure. The idea behind tgi_load() was to be able to describe a TGI mode in a target-neutral way by resolution and colordepth. However it turned out that there arn't any cc65 targets sharing any resolution. As a result the only working target-independent approach for a TGI program is to call tgi_loaddriver(tgi_stddrv); and then look up the resolution provided - and to adapt to that resolution.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@5016 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-05-02 10:38:48 +00:00
uz
a507605a89
New TGI routines tgi_getaspectratio/tgi_setaspectratio.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@5009 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-05-01 18:40:38 +00:00
ol.sc
689bb3ab9c
Removed TGI black/white defines as those are to be considered as target specific.
...
TODO: Remove them from .inc file too - bit only after the tgi kernel has be adjusted.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4988 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-04-20 12:23:27 +00:00
uz
36cf23680c
MAde the second parameter of tgi_ioctl a void* instead of an unsigned to keep
...
the interface more uniform between the driver APIs.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4518 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-12-11 14:33:53 +00:00
uz
eee4430061
Added a tgi_pieslice function.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4449 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-11-05 20:32:17 +00:00
uz
787f069738
Moved fixed point multiplication and rounding into an asm module.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4447 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-11-05 20:16:43 +00:00
uz
78070d8bfb
Added tgi_circle and tgi_ellipse functions. The latter works, but could be
...
optimized.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4445 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-11-05 17:14:29 +00:00
uz
87866e3099
Working on the TGI API, adding vector fonts. Only roughly tested!
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4432 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-11-02 22:29:49 +00:00
uz
5bfe33e4b7
Small changes in definitions. Additional error code.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4417 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-11-01 22:01:06 +00:00
uz
944749e07f
Preparations for use of vectorfonts.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4414 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-11-01 21:49:09 +00:00
uz
763fe0b802
Start of TGI changes. Untested, may not work.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4404 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-10-30 21:26:35 +00:00
ol.sc
1d9fc5f655
Changed 'Clear the screen' to 'Clear the drawpage'.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4394 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-10-27 21:20:06 +00:00
uz
7de61e351c
Define a standard driver and mode for tgi graphics and use it in the sample
...
program. The standard driver and mode is the first one in the tgi_mode_table.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4153 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-09-11 18:59:37 +00:00
cuz
08ee93cbad
Added tgi_ioctl
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3252 b7a2c559-68d2-44c3-8de9-860c34a00d81
2004-10-14 18:24:52 +00:00
cuz
aa0c3bbf81
New function tgi_geterrormsg
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3125 b7a2c559-68d2-44c3-8de9-860c34a00d81
2004-06-15 09:08:39 +00:00
cuz
b7bf38482d
tgi_pagecount returns an unsigned, not void
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@2581 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-10-29 19:00:42 +00:00
cuz
3531023e22
getpalette and getdefpalette may no longer return a NULL pointer.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@2569 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-10-23 09:30:37 +00:00
cuz
8ecdf9d6b7
Renamed ..._deinstall -> ..._uninstall.
...
Rename tgi_setup to tgi_install.
Make tgi_install and tgi_deinstall user callable.
More cosmetic changes.
git-svn-id: svn://svn.cc65.org/cc65/trunk@1966 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-02-11 12:37:46 +00:00
cuz
cd77c6ab90
Removed param from tgi_init()
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@1860 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-12-29 20:58:36 +00:00
izydorst
4661e39a2b
tgi/*.h headers were being searched in local, not CC65_INC path
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@1808 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-12-20 23:25:04 +00:00
cuz
8b14f60e0d
Removed duplicate declaration
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@1430 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-03 13:28:34 +00:00
cuz
7fffd12f11
Started to add tgi text output functions
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@1428 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-03 11:18:49 +00:00
cuz
104ce990cb
More work on the graphics subsystem
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@1334 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-07-07 10:30:31 +00:00
cuz
207c4a9e56
Working on the TGI library
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@1325 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-06-22 21:53:58 +00:00
cuz
bf944755dd
Working on the TGI library
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@1323 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-06-22 21:40:24 +00:00
cuz
7fc24b058a
TGI Implementation
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@1314 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-06-21 14:16:32 +00:00
cuz
e50b24d46a
Implementing TGI
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@1311 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-06-21 12:46:52 +00:00
cuz
1d35deabc8
Added TGI files, removed obsolete graphics.h
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@1309 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-06-21 12:01:16 +00:00