Topic : TOS - das Betriebssystem Author : Version : tos.hyp (5. März 2013) Subject : Programmieren/Atari Nodes : 3001 Index Size : 93602 HCP-Version : 5 Compiled on : Atari @charset : atarist @lang : @default : Titel @help : @options : +g -i -s +x +zz -t4 @width : 70 View Ref-File8.19.3 xgrf_stepcalc TOS Name: »Stepcalc for XGraf« - Parameterberechnung für die Animation von Rechtecken. AES-Nummer: 130 Deklaration: int16_t xgrf_stepcalc ( int16_t orgw, int16_t orgh, int16_t xc, int16_t yc, int16_t w, int16_t h, int16_t *pcx, int16_t *pcy, int16_t *pcnt, int16_t *pxstep, int16_t *pystep ); Beschreibung: Die Funktion berechnet alle Parameter für einen Aufruf von xgrf_2box. Es gilt: Parameter Bedeutung orgw anfängliche Breite orgh anfängliche Höhe xc Endposition in x-Richtung yc Endposition in y-Richtung w Breite der Endgröße h Höhe der Endgröße pcx zentrierte Position nach Ablauf des Vorgangs in x-Richtung pcy dto. für y-Richtung pcnt Anzahl der Einzelschritte pxstep Schrittweite in x-Richtung pystep Schrittweite in y-Richtung Hinweis: Aus Anfangsgröße, Endgröße und Endposition des Rechtecks werden Endposition, Anzahl der Schritte sowie Größe der Schritte bestimmt. Ergebnis: Der Rückgabewert der Funktion ist z.Zt. unbekannt. Verfügbar: Die Funktion ist nur ab PC-GEM 2.0, ab KAOS 1.4.2 und MagiC vorhanden. Gruppe: X-Grafikfunktionen Querverweis: Binding xgrf_2box MagiC