[comp.sys.amiga] dualpf

hbdortch@sactoh0 (Howard B. Dortch) (06/26/89)

 I have been trying to make a dual playfield display using the
graphics routines. On page 8-31 of the RKM I see a "C" statement
( MakeVPort(&view,&viewport,&rasinfo1,&rasinfo2)). Then turning
to the Amiga Programmers Handbook page 252 I see the syntax of
the function call as MakeVPort (view,viewport)(a0,a1). Where
do I put the rasinfo structures??????? How do I convert this to
assembler? 

:
::
-- 
#############################################################
#         PRIVATE             #  Serving The State Capitol  #  
#         PARKING             #  Of California: sactoh0     #
#############################################################

adam@cbmvax.UUCP (Adam Levin - CATS) (07/01/89)

In article <1078@sactoh0> hbdortch@sactoh0 (Howard B. Dortch) writes:
>
> I have been trying to make a dual playfield display using the
>graphics routines. On page 8-31 of the RKM I see a "C" statement
>( MakeVPort(&view,&viewport,&rasinfo1,&rasinfo2)). Then turning
>to the Amiga Programmers Handbook page 252 I see the syntax of
>the function call as MakeVPort (view,viewport)(a0,a1). Where
>do I put the rasinfo structures??????? How do I convert this to
>assembler? 
>

From the 1.3 AutoDocs for the Graphics library:


C-A>    NAME
C-A>         MakeVPort -- generate display copper list.
C-A> 
C-A>    SYNOPSIS
C-A>         MakeVPort( view, viewport )
C-A>                     a0      a1
C-A> 
C-A>         struct View *view;
C-A>         struct ViewPort *viewport;
...
C-A>    INPUTS
...
C-A>             The viewport must have valid pointer to a RasInfo.
...
C-A>    RESULTS
...
C-A>         If DUALPF in Modes then there must be a second RasInfo pointed
C-A>         to by the first RasInfo
...

For assembler, simply put the address of the View 
in a0 and that of the ViewPort in a1.
-- 
     Adam Keith Levin  --  CATS   Commodore-Amiga Technical Support
     1200 Wilson Drive / West Chester, PA  19380     (215) 431-9180
     BIX: aklevin        UUCP: ...{amiga|rutgers|uunet}!cbmvax!adam