1 | /********************************************************************** <BR>
|
---|
2 | This file is part of Crack dot Com's free source code release of
|
---|
3 | Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
|
---|
4 | information about compiling & licensing issues visit this URL</a>
|
---|
5 | <PRE> If that doesn't help, contact Jonathan Clark at
|
---|
6 | golgotha_source@usa.net (Subject should have "GOLG" in it)
|
---|
7 | ***********************************************************************/
|
---|
8 |
|
---|
9 | #ifndef __SATURN_VIDEO_HH
|
---|
10 | #define __SATURN_VIDEO_HH
|
---|
11 |
|
---|
12 | #include "image/depth.hh"
|
---|
13 | #include "image/image8.hh"
|
---|
14 | #include "image/image15.hh"
|
---|
15 | #include "video/display.hh"
|
---|
16 |
|
---|
17 | class i4_saturn_display_class : public i4_display_class
|
---|
18 | {
|
---|
19 | private:
|
---|
20 | // generic image which will take the type of the screen when we copy the save portion
|
---|
21 | i4_image_class *mouse_pict;
|
---|
22 |
|
---|
23 | I4_SCREEN_TYPE *mouse_save,
|
---|
24 | *screen;
|
---|
25 |
|
---|
26 | i4_coord mouse_x,mouse_y;
|
---|
27 |
|
---|
28 | protected:
|
---|
29 | virtual w16 width() { return 320; }
|
---|
30 | virtual w16 height() { return 240; }
|
---|
31 |
|
---|
32 | i4_draw_context_class *context;
|
---|
33 |
|
---|
34 | public :
|
---|
35 | i4_coord mouse_hot_x,mouse_hot_y;
|
---|
36 | i4_pal_handle_class mouse_pal;
|
---|
37 | i4_color mouse_trans;
|
---|
38 |
|
---|
39 | virtual i4_bool set_mouse_shape(i4_cursor_class *cursor) { ; }
|
---|
40 |
|
---|
41 | // devices local to this display (Keys & mice)
|
---|
42 | virtual i4_device_class *local_devices() { return 0; }
|
---|
43 |
|
---|
44 | virtual i4_image_class *get_screen() { return 0; }
|
---|
45 |
|
---|
46 | // makes the physical display consistant with previous gfx calls
|
---|
47 | // either through page flipping or copying dirty rects from an
|
---|
48 | // off-screen buffer
|
---|
49 | virtual void flush() { ; }
|
---|
50 |
|
---|
51 | // returns some descriptive name for this display
|
---|
52 | virtual char *name() { return "Saturn display"; }
|
---|
53 |
|
---|
54 | virtual i4_draw_context_class *get_context() { return context; }
|
---|
55 |
|
---|
56 | virtual mode *get_first_mode() { return 0; }
|
---|
57 | virtual mode *get_next_mode(mode *last_mode) { return 0; }
|
---|
58 |
|
---|
59 |
|
---|
60 | // initialize_mode need not call close() to switch to another mode
|
---|
61 | virtual i4_bool initialize_mode(mode *which_one) { return i4_F; }
|
---|
62 |
|
---|
63 | // should be called before a program quits
|
---|
64 | virtual i4_bool close() { return i4_F; }
|
---|
65 | virtual i4_bool available() { return i4_F; }
|
---|
66 |
|
---|
67 | // loads the palette into hardware registers, return i4_F if pal_id is wrong color depth for display
|
---|
68 | virtual i4_bool realize_palette(i4_pal_handle_class pal_id) { return i4_F; }
|
---|
69 |
|
---|
70 | virtual i4_bool display_busy() { return i4_F; }
|
---|
71 |
|
---|
72 | } ;
|
---|
73 |
|
---|
74 | extern i4_saturn_display_class saturn_display_instance;
|
---|
75 |
|
---|
76 | #endif
|
---|
77 |
|
---|
78 |
|
---|
79 |
|
---|
80 |
|
---|