Re: [cc65] TGI API deficit / proposal

From: Oliver Schmidt <ol.sc1web.de>
Date: 2009-10-25 22:23:59
Hi Uz,

> I need to test what the apple2 driver
> actually does ...

I did so and the tgi_clear() affects on the drawpage. So after all the
only thing to do (beside maybe the Lynx driver) might be to somewhat
improve the tgi_clear() description.

I was in fact quite impressed how easy it was to turn 3dmaze into a
duble buffering program. I just extended the source code

    tgi_clear ();
    Draw3d (Direction, x, y);

to

    tgi_setdrawpage (Page);
    tgi_clear ();
    Draw3d (Direction, x, y);
    tgi_setviewpage (Page);
    Page = Page ? 0 : 1;

that's all - it worked instantly as expected :-)

Modifying the linker config to get the program successfully up and
running with two hires pages of memory reserved was after all much
more work ;-)

As far as I see I don't even need to add tgi_getpagecount() based
runtime detection to the 3dmaze code above. The tgi_setxxxpage() calls
will (depending on the parameter) either get rejected by TGI kernel
wrappers or ignored by the driver for all single-page drivers..

Sorry for the fuss, Oliver
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Oct 25 22:24:07 2009

This archive was generated by hypermail 2.1.8 : 2009-10-25 22:24:09 CET