source: golgotha/src/i4/video/win32/dd_cursor.hh @ 80

Last change on this file since 80 was 80, checked in by Sam Hocevar, 11 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
File size: 1.3 KB
Line 
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#include "video/win32/dx_cursor.hh"
10#include "video/win32/dx5_util.hh"
11#include <ddraw.h>
12
13// base class that you should derive from
14// this class will call at the appropriate times :
15//    remove(), save(), and display()
16// these should use the 'cursor' i4_image type to draw with
17
18class ddraw_thread_cursor_class : public dx_threaded_mouse_class
19
20  public: 
21 
22  i4_dx5_image_class *mouse_save;
23
24  ddraw_thread_cursor_class(const i4_pal *screen_pal,
25                            HWND window_handle,
26                            sw32 clip_x1, sw32 clip_y1,
27                            sw32 clip_x2, sw32 clip_y2);
28
29  void set_cursor(i4_cursor_class *cursor);
30
31  i4_bool use_back_buffer;
32
33  void use_backbuffer(i4_bool use);
34
35  void remove();
36  void save();
37  void display(); 
38};
Note: See TracBrowser for help on using the repository browser.