source: golgotha/src/i4/video/glide/win32_glide.cc @ 80

Last change on this file since 80 was 80, checked in by Sam Hocevar, 14 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.6 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 "threads/threads.hh"
10#include "video/glide/glide_display.hh"
11#include "video/win32/win32_input.hh"
12#include "main/win_main.hh"
13
14class i4_win32_glide_display_class : public i4_glide_display_class
15{
16public:
17  virtual char *name() { return "3dfx / Glide"; }
18
19  win32_input_class input;
20  virtual i4_device_class *local_devices() { return &input; }
21  virtual void destroy_window() {  input.destroy_window(); }
22  virtual i4_bool create_window()
23  {
24    return input.create_window(0,0,tmp.xres,
25                               tmp.yres, this, i4_win32_startup_options.fullscreen);
26  }
27
28
29  virtual void get_mouse_pos(sw32 &mouse_x, sw32 &mouse_y)
30  {
31    mouse_x=input.mouse_x;
32    mouse_y=input.mouse_y;
33  }
34
35  virtual i4_bool lock_mouse_in_place(i4_bool yes_no)
36  {
37    return input.lock_mouse_in_place(yes_no);
38  }
39
40  virtual unsigned long window_handle() { return (unsigned long)i4_win32_window_handle; }
41 
42  i4_win32_glide_display_class(char *message):input(message) {}
43 
44};
45
46i4_win32_glide_display_class i4_win32_glide_display_instance("Hit Left Control + F9 to return to Golgotha");
Note: See TracBrowser for help on using the repository browser.