contrib/OWB: add correct SDL dependency, fix compilers used
[AROS-Contrib.git] / freetype1 / test / gmain.h
blob3cf16f4896d310aa21c0a3221e1c3ee78e0cdcfc
1 /*******************************************************************
3 * gmain.h graphics utility main interface 1.1
5 * This file defines a common interface, implemented in the body
6 * file 'gmain.c'. It relies on system dependent driver files,
7 * like 'gfs_os.c', whose interface is described in 'gdriver.h'.
9 * Copyright 1996-1999 by
10 * David Turner, Robert Wilhelm, and Werner Lemberg.
12 * This file is part of the FreeType project, and may only be used
13 * modified and distributed under the terms of the FreeType project
14 * license, LICENSE.TXT. By continuing to use, modify or distribute
15 * this file you indicate that you have read the license and
16 * understand and accept it fully.
18 ******************************************************************/
20 #ifndef GMAIN_H
21 #define GMAIN_H
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
27 /* Graphics mode definitions */
29 #define Graphics_Mode_Mono 1 /* monochrome graphics mode */
30 #define Graphics_Mode_Gray 2 /* 8-bit palette graphics mode */
32 extern char* Vio; /* Pointer to VRAM or display buffer */
34 extern int vio_ScanLineWidth; /* Scan Line width in bytes */
36 extern int vio_Width;
37 extern int vio_Height;
39 extern unsigned char gray_palette[5]; /* standard gray_palette */
42 /* set a graphics mode, chosen from the FS_Graphics_xxx list */
43 int SetGraphScreen( int mode );
45 /* restore previous (or text) video mode */
46 int RestoreScreen( void );
48 /* display a bitmap of 'line' lines, and 'col' columns (each */
49 /* column made of 8 bits) */
50 void Display_Bitmap_On_Screen( char* buffer, int line, int col );
52 void Goto_XY( int x, int y );
55 extern int gcursor_x;
56 extern int gcursor_y;
58 extern int gwindow_width;
59 extern int gwindow_height;
61 void Print_Str( char* string );
62 void Print_XY ( int x, int y, char* string );
64 #ifdef __cplusplus
66 #endif
68 #endif /* GMAIN_H */
71 /* End */