[comp.sys.amiga.programmer] Rotating text

rg20+@andrew.cmu.edu (Rick Francis Golembiewski) (02/13/91)

I'm looking for a legal way of rotationg text 90 degrees, (I'de like
to use the blitter for speed if it's practical),  I'de appreciate it
if anyone has some ideas (example code would be even better).  I know
how to do a rotation (ie via matrix transformations), but I'de like
something that would be faster on the amiga.

//     Rick Golembiewski  rg20+@andrew.cmu.edu  \\
\\       #include stddisclaimer.h               //
 \\  "I never respected a man who could spell" //
  \\               -M. Twain                  //

BAXTER_A@wehi.dn.mu.oz (02/14/91)

In article <Ubi7Uem00WB2A67Ht4@andrew.cmu.edu>, rg20+@andrew.cmu.edu (Rick Francis Golembiewski) writes:
> I'm looking for a legal way of rotationg text 90 degrees, (I'de like
> to use the blitter for speed if it's practical),  I'de appreciate it
> if anyone has some ideas (example code would be even better).  I know
> how to do a rotation (ie via matrix transformations), but I'de like
> something that would be faster on the amiga.
> 
> //     Rick Golembiewski  rg20+@andrew.cmu.edu  \\
> \\       #include stddisclaimer.h               //
>  \\  "I never respected a man who could spell" //
>   \\               -M. Twain                  //
 I would like this too, if it works with Amiga fonts.

Reagrds Alan

spence@cbmvax.commodore.com (Spencer Shanson) (02/15/91)

In article <20898@wehi.dn.mu.oz> BAXTER_A@wehi.dn.mu.oz writes:
>In article <Ubi7Uem00WB2A67Ht4@andrew.cmu.edu>, rg20+@andrew.cmu.edu (Rick Francis Golembiewski) writes:
>> I'm looking for a legal way of rotationg text 90 degrees, (I'de like
>> to use the blitter for speed if it's practical),  I'de appreciate it
>> if anyone has some ideas (example code would be even better).  I know
>> how to do a rotation (ie via matrix transformations), but I'de like
>> something that would be faster on the amiga.
>> 
>> //     Rick Golembiewski  rg20+@andrew.cmu.edu  \\
>> \\       #include stddisclaimer.h               //
>>  \\  "I never respected a man who could spell" //
>>   \\               -M. Twain                  //
> I would like this too, if it works with Amiga fonts.
>
The current Hardware Manual from Addison Wesley gives example code to 
rotate a single row bt 90degrees. You could use this as a basis.
Remember though, that as this code hits the hardware directly, you must
eensure you OwnBlitter(), WaitBlit(), DisownBlit() to be multi-tasking
friendly.

>Reagrds Alan


-- 
---------------------------------------------------------------------------
Spencer Shanson - Amiga Software Engineer     | email: spence@commodore.COM
                                              | or uunet!cbmvax!spence
All opinions expressed are my own, and do not | "You know my methods. Apply
(necessarily) represent those of Commodore.   | them" -- Sir Arthur Conan
                                              | Doyle - 'The Sign of Four'