15 #ifndef DRAWABLEREGION_H 16 #define DRAWABLEREGION_H 18 #include "pandabase.h" 20 #include "renderBuffer.h" 21 #include "typedWritableReferenceCount.h" 36 INLINE DrawableRegion(
const DrawableRegion ©);
37 INLINE
void operator = (
const DrawableRegion ©);
38 virtual ~DrawableRegion();
40 INLINE
void copy_clear_settings(
const DrawableRegion ©);
46 enum RenderTexturePlane {
66 INLINE
void set_clear_color_active(
bool clear_color_active);
67 INLINE
bool get_clear_color_active()
const;
69 INLINE
void set_clear_depth_active(
bool clear_depth_active);
70 INLINE
bool get_clear_depth_active()
const;
72 INLINE
void set_clear_stencil_active(
bool clear_stencil_active);
73 INLINE
bool get_clear_stencil_active()
const;
76 INLINE
const LColor &get_clear_color()
const;
78 INLINE
void set_clear_depth(PN_stdfloat depth);
79 INLINE PN_stdfloat get_clear_depth()
const;
81 INLINE
void set_clear_stencil(
unsigned int stencil);
82 INLINE
unsigned int get_clear_stencil()
const;
84 virtual void set_clear_active(
int n,
bool clear_aux_active);
85 virtual bool get_clear_active(
int n)
const;
87 virtual void set_clear_value(
int n,
const LColor &clear_value);
88 virtual const LColor &get_clear_value(
int n)
const;
90 virtual void disable_clears();
91 virtual bool is_any_clear_active()
const;
93 virtual void set_pixel_zoom(PN_stdfloat pixel_zoom);
94 INLINE PN_stdfloat get_pixel_zoom()
const;
95 INLINE PN_stdfloat get_pixel_factor()
const;
96 virtual bool supports_pixel_zoom()
const;
98 static int get_renderbuffer_type(
int plane);
101 INLINE
int get_screenshot_buffer_type()
const;
102 INLINE
int get_draw_buffer_type()
const;
105 INLINE
void update_pixel_factor();
106 virtual void pixel_factor_changed();
109 int _screenshot_buffer_type;
110 int _draw_buffer_type;
113 bool _clear_active[RTP_COUNT];
114 LColor _clear_value[RTP_COUNT];
116 PN_stdfloat _pixel_zoom;
117 PN_stdfloat _pixel_factor;
121 #include "drawableRegion.I" This is a base class for GraphicsWindow (actually, GraphicsOutput) and DisplayRegion, both of which are conceptually rectangular regions into which drawing commands may be issued.
This is the base class for all three-component vectors and points.