dd_cursor.hh 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. #include "video/win32/dx_cursor.hh"
  9. #include "video/win32/dx5_util.hh"
  10. #include <ddraw.h>
  11. // base class that you should derive from
  12. // this class will call at the appropriate times :
  13. // remove(), save(), and display()
  14. // these should use the 'cursor' i4_image type to draw with
  15. class ddraw_thread_cursor_class : public dx_threaded_mouse_class
  16. {
  17. public:
  18. i4_dx5_image_class *mouse_save;
  19. ddraw_thread_cursor_class(const i4_pal *screen_pal,
  20. HWND window_handle,
  21. sw32 clip_x1, sw32 clip_y1,
  22. sw32 clip_x2, sw32 clip_y2);
  23. void set_cursor(i4_cursor_class *cursor);
  24. i4_bool use_back_buffer;
  25. void use_backbuffer(i4_bool use);
  26. void remove();
  27. void save();
  28. void display();
  29. };