
 *=-----------------------------------------------------------------------=*

                             The PLLB-C2P Demo's

                   Written (hacked together) by Kevin Picone

            (c) copyright 1996, Kevin Picone, Of Underware Design

 *=-----------------------------------------------------------------------=*

 

 Zrotate/Flexer:   256 colours, 320*256, Pixel Res of 1x*2y

 In this routine, and with the type of image it uses, I selected to use the
 normal Pllb-C2P mode to process convert the frame buffer.  If the Image
 was less complex (ie. more solid colour areas) i would have been better
 suited to use the DELTA modes.

 Unfortunately, the code that renders the rotated Scanlines is quite slow.
 Here is an example of the code render just a single pixel in the rotated
 line.

 ; a0 = pointer to chunky buffer
 ; a2 ='s pointer to Picture's address ie. picture is (256*256 pixels)

 ;	Render Pixel	

	move.w d2,d4		; backup X position
	move.w d3,d5		: Backup Y position

	lsr.w #8,d4		; shift x position into lower Byte 
	move.b d4,d5		; move X position into y pos

	move.b (a2,d5.l),(a0)+		; Grab & output pixel

	add.w d0,d2		; add X fraction to x offset!
	add.w d1,d3		; add y fraction to y offset!


 On my A1200/020 14mhz+fastram it's runs at an Average of 6.8 Fps




 Gouraud Cube:     256 colours, 320*256, Pixel Res of 1x*2y 

 In this little demo I selected too use a NULLSKIP C2P, since obviously
 there is quite a large amount of unused screen, and not to mention that
 this C2P mode also clears the chunky buffer for me.

 Unfortunately again, the Gouraud code is extremely slow, with the inner
 draw gouraud scanline loop looking something like this..
 
 DrawGouraudScanLine_lp:
            move.w d4,d0
            lsr.w #8,d0
            move.b d0,(a5)+
            add.w d5,d4

        dbf d7,DrawGouraudScanLine_lp


 On my A1200/020 14mhz+fastram it's runs at an Average of 12.7 Fps


 *=-----------------------------------------------------------------------=*

                               T H E   E N D

 *=-----------------------------------------------------------------------=*



