source: golgotha/src/render/r1_win.hh

Last change on this file 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.2 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#ifndef R1_WIN_HH
10#define R1_WIN_HH
11
12#include "window/window.hh"
13#include "r1_api.hh"
14
15class r1_render_window_class : public i4_parent_window_class
16
17  r1_render_api_class *api;
18
19protected:
20  r1_expand_type expand_type;
21
22public:
23  void resize(w16 new_width, w16 new_height);
24
25  r1_render_window_class(w16 w, w16 h,
26                         r1_expand_type expand_type,
27                         r1_render_api_class *api)
28    : i4_parent_window_class(w,h),
29      expand_type(expand_type),
30      api(api)
31  {
32  }
33
34  int render_area_width();
35  int render_area_height();
36
37  // use this to clip out child windows using a z buffer
38  void clip_with_z(i4_draw_context_class &context);
39
40  virtual void begin_render() {}
41  virtual void end_render() {}
42};
43
44#endif
Note: See TracBrowser for help on using the repository browser.