•  Back 
  •  Extended graphics library 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help page 
  •  Show info about hypertext 
  •  View a new file 
Topic       : TOS - The Operating System
Author      : 
Version     : tos.hyp (December 19, 2008)
Subject     : Programmieren/Atari
Nodes       : 3010
Index Size  : 93790
HCP-Version : 5
Compiled on : Atari
@charset    : atarist
@lang       : 
@default    : Title
@help       : 
@options    : +g -i -s +x +zz -t4
@width      : 70
View Ref-File8.19.1  xgrf_2box                                                  TOS

 Name:         »Animate rectangles« - Draw a set of moving rectangles.

 Opcode:       131

 Syntax:       int16_t xgrf_2box ( int16_t cx, int16_t cy, int16_t w, 
               int16_t h, int16_t corners, int16_t cnt, int16_t xstep, 
               int16_t ystep, int16_t doubled );

 Description:  The call xgrf_2box draws a set of rectangles that move 
               on the screen. The following apply:

                Parameter  Meaning

                cx         Start position in X-direction
                cy         Start position in Y-direction
                w          Width of start position
                h          Height of start position
                corners    Draw:
                            0 =     Draw complete rectangles
                            1 =     Draw only the corners
                cnt        Number of single steps
                xstep      Step size in X-direction
                ystep      Step size in Y-direction
                doubled    Step size
                            0 =     Normal step size
                            1 =     Doubled step size

               Note: The function is a replacement for the deleted 
               functions of the FORM and GRAF libraries in PC-GEM (due 
               to the legal dispute between Apple and Digital 
               Research).

 Return value: This is unknown at present.

 Availability: The function is available only as of PC-GEM 2.0, as of 
               KAOS 1.4.2 and MagiC.

 Group:        Extended graphics library

 See Also:     Binding   xgrf_stepcalc   MagiC