Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: JWinslow23 on February 18, 2014, 04:59:40 pm

Title: Graphics Help?
Post by: JWinslow23 on February 18, 2014, 04:59:40 pm
I've heard somewhere that you can absorb actual picture variables from the calc for use on buffers (only needed for compilation). Is this true, and if so, how do I do so?
Title: Re: Graphics Help?
Post by: Matrefeytontias on February 18, 2014, 05:07:19 pm
[PicVar] does what you want. There are 2 ways of absorbing pictures, as fullscreen images or as tilemaps.

:.As an image
:[Pic1]->Pic1
:
:.As a tilemap
:[Pic1r]->Pic1
:Pt-On(0,0,Pic1)
:Pt-On(8,0,Pic1+8)
Title: Re: Graphics Help?
Post by: JWinslow23 on February 18, 2014, 07:29:11 pm
Thanks; that's just what I needed.
Title: Re: Graphics Help?
Post by: Sorunome on February 19, 2014, 02:46:35 am
If you do it as an app and you want to change the Pic1 var while runtime, you'll need to store to some other variable, like, e.g. A instead.
Title: Re: Graphics Help?
Post by: Hayleia on February 19, 2014, 12:26:27 pm
If you do it as an app and you want to change the Pic1 var while runtime, you'll need to store to some other variable, like, e.g. A instead.
Pic1 is not a var, it's a pointer. Which is why you "can't" change what it points to when you compile as an app, it points to a byte in ROM. So you'll have to copy what it points to to some place in RAM then you'll be able to modify the content of the copy, but still not what Pic1 points to. And doing Pic1→A is not copying what Pic1 points to "in" A (I don't even know what that would mean), it just gets A to point to the same place as Pic1 points to (so if you compiled as an app, A points to ROM too).