#ifndef GFXL3_H
#define GFXL3_H

/****************************************************************
*																																*
*	 Filename : GfxL3.h																						*
*																																*
*****************************************************************
*																																*
*		Comment : Includedatei für Plotlibrary Level 3 Bildschirm-	*
*							ausgabe																						*
*																																*
*				Rev : V1.0																							*
*																																*
*		History : V1.0 erstellen dieses Files							05/12/89	*
*																																*
*				Doc : Plotlibrary User's Guide													*
*																																*
*			 Bugs : keine bekannten																		*
*																																*
*			Autor : Oesch Silvano																			*
*																																*
*			Datum : 05/12/89																					*
*																																*
****************************************************************/

/****************************************************************
*																																*
*	Graphikmakros																									*
*																																*
****************************************************************/

/*******************/
#ifdef AMIGA
/*******************/
#ifndef BLAU

#define BLAU(n) (n & 0x0000F)
#define GRUEN(n) ((n >> 4) & 0x000F)
#define ROT(n) ((n >> 8) & 0x000F)

#endif
#endif

/****************************************************************
*																																*
*	Definition der Funktionsparameter															*
*																																*
****************************************************************/

#ifdef PROTOTYPEN

int ScOpenGraphics(void);
void ScCloseGraphics(void);
int ScGetMaxColor(void);
int ScGetMaxX(void);
int ScGetMaxY(void);
void ScSetTextSize(void);
void ScDrawText(int ,int ,char *);
void ScClearGraphics(void);
int ScGetFgColor(void);
void ScSetFgColor(int );
int ScGetBackColor(void);
void ScSetBackColor(int );
void ScDrawLine(int ,int ,int ,int );
void ScDrawPolyLine(int ,GPT *);
int ScFillPolyLine(int ,GPT *);
void ScSetFillStyle(int );
void ScDrawRectangle(int ,int ,int ,int );
int ScGetTextSize(int );
void ScSetLineStyle(int );

/*******************/
#ifdef AMIGA
/*******************/

int openlib(void);
int openscreen(void);

#endif

/*******************/
#ifdef __MSDOS__
#ifdef __TURBOC__
/*******************/

#define MAXDEFCOL 16
#define MAXDRIVER	6

void initdriver(void);
void initcolor(int count);

#endif
#endif

#else

int ScOpenGraphics();
void ScCloseGraphics();
int ScGetMaxColor();
int ScGetMaxX();
int ScGetMaxY();
void ScSetTextSize();
void ScDrawText();
void ScClearGraphics();
int ScGetFgColor();
void ScSetFgColor();
int ScGetBackColor();
void ScSetBackColor();
void ScDrawLine();
int ScDrawPolyLine();
int ScFillPolyLine();
void ScSetFillStyle();
void ScDrawRectangle();
int ScGetTextSize();
void ScSetLineStyle();

/*******************/
#ifdef AMIGA
/*******************/

int openlib();
int openscreen();

#endif

/*******************/
#ifdef __MSDOS__
#ifdef __TURBOC__
/*******************/

#define MAXDEFCOL 16
#define MAXDRIVER	6

void initdriver();
void initcolor();

#endif
#endif
#endif
#endif
