17 INLINE DrawableRegion::
23 for (
int i = 0; i < RTP_COUNT; ++i) {
24 _clear_value[i] = LColor(0.0f, 0.0f, 0.0f, 0.0f);
26 _clear_value[RTP_depth] = LColor(1.0f,1.0f,1.0f,1.0f);
34 INLINE DrawableRegion::
36 _screenshot_buffer_type(copy._screenshot_buffer_type),
37 _draw_buffer_type(copy._draw_buffer_type),
38 _clear_mask(copy._clear_mask),
39 _pixel_zoom(copy._pixel_zoom),
40 _pixel_factor(copy._pixel_factor)
42 for (
int i = 0; i < RTP_COUNT; ++i) {
43 _clear_value[i] = copy._clear_value[i];
50 INLINE
void DrawableRegion::
52 _screenshot_buffer_type = copy._screenshot_buffer_type;
53 _draw_buffer_type = copy._draw_buffer_type;
54 _clear_mask = copy._clear_mask;
55 for (
int i = 0; i < RTP_COUNT; ++i) {
56 _clear_value[i] = copy._clear_value[i];
58 _pixel_zoom = copy._pixel_zoom;
59 _pixel_factor = copy._pixel_factor;
67 _clear_mask = copy._clear_mask;
68 for (
int i = 0; i < RTP_COUNT; ++i) {
69 _clear_value[i] = copy._clear_value[i];
71 update_pixel_factor();
216 return _pixel_factor;
225 return _screenshot_buffer_type;
235 return _draw_buffer_type;
241 INLINE
void DrawableRegion::
242 update_pixel_factor() {
243 PN_stdfloat new_pixel_factor;
245 new_pixel_factor = (PN_stdfloat)1 / sqrt(std::max(_pixel_zoom, (PN_stdfloat)1.0));
247 new_pixel_factor = 1;
249 if (new_pixel_factor != _pixel_factor) {
250 _pixel_factor = new_pixel_factor;
251 pixel_factor_changed();