Commit Graph

26 Commits

Author SHA1 Message Date
Greg King 266f35ee37 Made tgidemo draw circles in blue instead of orange.
That change lets it be built on two more platforms (Atmos, Telestrat).
2022-03-18 01:06:48 -04:00
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 8b5ae001e5 Refactored the TGI demo.
Cleared the screen at the beginning of each demo instead of at the end.  Setting the colors before clearing makes it more reliable and consistent across platforms.
2020-06-05 13:37:20 -04:00
Oliver Schmidt ac0b452834 Added '_' prefix to sin and cos.
Users complained that otherwise the names might clash with their functions.
2019-04-13 11:25:54 +02:00
greg-king5 60e40c854c
Removed a "cc65_" prefix.
This change is needed because of commit 3d8c3a4948.
2019-03-30 11:06:09 -04:00
Greg King e235ac2a0e Added a preprocessor guard to tgidemo.c that avoids a compiler warning.
DoWarning() is compiled only if it will be used.
2018-04-17 16:53:10 -04:00
Oliver Schmidt 9bc096d9b0 Make use of doesclrscrafterexit(). 2016-06-18 23:57:17 +02: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
ol.sc ca2ba14bbe Added option to build samples with statically linked drivers - and have the targets use it by default which don't support dynamically loaded drivers.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5913 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-11-04 22:01:51 +00:00
ol.sc 2552a7c117 Cache aspect ratio like already done with resolution.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5012 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-05-01 21:38:04 +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 9bf3446060 A first small step towards aspect ratio awareness.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5003 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-04-30 13:12:53 +00:00
ol.sc 2f3aa1d5d4 Use TGI colors.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4990 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-04-20 12:59:45 +00:00
ol.sc e5c0077b88 Added explicit tgi_clear() after tgi_init() now that this isn't done by tgi_init() anymore.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4561 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-01-26 20:12:35 +00:00
uz 7b8fbb31da Rewrote the sinus display using the new cc65_sin function.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4403 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-10-30 14:03:21 +00:00
ol.sc cb5ce7da5a Adjusted error message to recent change.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4311 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-10-03 11:07:10 +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 feae688346 Oliver Schmidt updated the graphics drivers and part of the C library for the
Apple machines.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3816 b7a2c559-68d2-44c3-8de9-860c34a00d81
2008-03-16 09:37:22 +00:00
cuz 65c580f864 Added changes from Oliver Schmidt so the graphics oriented demo programs
can also be run on apple machines. Changed the makefile to account for the
special start address needed for these programs.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3660 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-11-20 17:49:44 +00:00
cuz d136a3409f Cosmetic changes
git-svn-id: svn://svn.cc65.org/cc65/trunk@3291 b7a2c559-68d2-44c3-8de9-860c34a00d81
2004-11-07 12:52:40 +00:00
cuz f174cda3d0 Try to be more resolution independent
git-svn-id: svn://svn.cc65.org/cc65/trunk@2649 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-12 16:32:25 +00:00
cuz ea85c5b05d tgi_init does no longer take params
git-svn-id: svn://svn.cc65.org/cc65/trunk@1915 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-02-01 21:48:01 +00:00
izydorst b3a4777d4c more funstuff in tgidemo
git-svn-id: svn://svn.cc65.org/cc65/trunk@1832 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-12-23 14:54:28 +00:00
cuz 6106ec729e Make DoWarning static
git-svn-id: svn://svn.cc65.org/cc65/trunk@1689 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-12-01 23:40:01 +00:00
cuz eea95f7b64 Added tgidemo
git-svn-id: svn://svn.cc65.org/cc65/trunk@1433 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-03 17:36:18 +00:00