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 |
|
---|
15 | class r1_render_window_class : public i4_parent_window_class
|
---|
16 | {
|
---|
17 | r1_render_api_class *api;
|
---|
18 |
|
---|
19 | protected:
|
---|
20 | r1_expand_type expand_type;
|
---|
21 |
|
---|
22 | public:
|
---|
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
|
---|