home *** CD-ROM | disk | FTP | other *** search
- /****************************************************************
- * *
- * Filename : Graphik.c *
- * *
- ****************************************************************
- * *
- * Comment : Alle Graphikbefehle *
- * *
- * *
- * *
- * Rev : V1.0 *
- * *
- * History : V1.0 erstellen dieses Files 17.09.89 *
- * *
- * Doc : *
- * *
- * Bugs : keine bekannten *
- * *
- * Autor : Oesch Silvano *
- * *
- * Datum : 17.09.89 *
- * *
- ****************************************************************/
-
-
-
- /****************************************************************
- * *
- * allgemeine Includedateien *
- * *
- ****************************************************************/
-
- #include <ctype.h>
- #include <exec/types.h>
- #include <intuition/intuition.h>
- #include <intuition/intuitionbase.h>
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
- #include <dos.h>
- #include <graphics/gfxbase.h>
- #include <graphics/gfxmacros.h>
-
- /****************************************************************
- * *
- * programmspezifische Includedateien *
- * *
- ****************************************************************/
-
- #include "function.h"
-
- /****************************************************************
- * *
- * globale Definitionen *
- * *
- ****************************************************************/
-
- void Rechteck(Rp, colour, x1, y1, x2, y2)
- struct RastPort *Rp;
- int colour, x1, y1, x2, y2;
- {
- BYTE apen,
- open,
- drmd;
-
- apen = Rp->FgPen; /* speichern der akt. Farbe */
- open = Rp->AOlPen; /* speichern Rahmenfarbe */
- drmd = Rp->DrawMode; /* speichern Drawmode */
- SetAPen(Rp,0l);
- SetOPen(Rp,colour);
- SetDrMd(Rp,JAM2);
- RectFill(Rp, x1, y1, x2, y2);
- SetAPen(Rp,(long)apen);
- SetOPen(Rp,(long)open);
- SetDrMd(Rp,(long)drmd);
- }
-
- void line (Rp,colour,x1,y1,x2,y2)
- struct RastPort *Rp;
- int colour, x1, y1, x2, y2;
- {
- BYTE apen;
-
- apen = Rp->FgPen; /* speichern der akt. Farbe */
- SetAPen(Rp,colour);
- Move (Rp,x1,y1);
- Draw(Rp,x2,y2);
- SetAPen(Rp,(long)apen);
- }
-
- void clscr(Rp)
- struct RastPort *Rp;
- {
- SetRast(Rp,0L);
- }
-