1 /*	SCCS Id: @(#)jtp_gra.h	3.0	2000/11/12	*/
2 /* Copyright (c) Jaakko Peltonen, 2000				  */
3 /* NetHack may be freely redistributed.  See license for details. */
4 
5 #ifndef _jtp_gra_h_
6 #define _jtp_gra_h_
7 
8 #include "jtp_def.h"
9 
10 typedef struct{
11   unsigned char * vpage;
12   int width;
13   int height;
14   int drx1,dry1,drx2,dry2;
15 } jtp_screen_t;
16 
17 void jtp_init_screen(int, int, int);
18 void jtp_enter_graphics_mode();
19 void jtp_exit_graphics_mode();
20 void jtp_correct_gamma(unsigned char *, unsigned char *, unsigned char *, double);
21 void jtp_palch(unsigned char, unsigned char, unsigned char, unsigned char);
22 void jtp_updatepal(unsigned char, unsigned char);
23 void jtp_blankpal(unsigned char, unsigned char);
24 void jtp_fade_out(double);
25 void jtp_fade_in(double);
26 void jtp_set_draw_region(int, int, int, int);
27 void jtp_pixelput(int, int, unsigned char);
28 unsigned char jtp_pixelget(int, int);
29 void jtp_rect(int, int, int, int, unsigned char);
30 void jtp_fill_rect(int, int, int, int, unsigned char);
31 void jtp_bres_line(int, int, int, int, unsigned char);
32 void jtp_bres_circle(int, int, int, unsigned char);
33 void jtp_bres_fill_circle(int, int, int, unsigned char);
34 unsigned char *jtp_get_img(int, int, int, int);
35 unsigned char *jtp_get_img_src(int, int, int, int, unsigned char *);
36 void jtp_put_img(int, int, unsigned char *);
37 void jtp_put_stencil(int, int, unsigned char *);
38 void jtp_refresh();
39 void jtp_refresh_region(int, int, int, int);
40 void jtp_free_screen();
41 
42 
43 extern unsigned char jtp_colors[][3];
44 extern jtp_screen_t jtp_screen;
45 extern double jtp_gamma_correction;
46 
47 void jtp_GoBackToTextMode();
48 void jtp_SetGDisplayMode(jtp_uint4);
49 
50 
51 #endif
52