summaryrefslogtreecommitdiff
path: root/servers/visual/visual_server_viewport.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-06-11 15:52:03 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-06-11 15:52:03 -0300
commit4d50c7ad8c77efd304d343edf81a81c596958d7d (patch)
tree8dd9483ff3f09f5c420f241755c0a49ee42b8edc /servers/visual/visual_server_viewport.h
parentec015a32ae4fed154ed6d0bd002c1e653d74a2c3 (diff)
Restored multiple viewport function, as well as view modes.
Diffstat (limited to 'servers/visual/visual_server_viewport.h')
-rw-r--r--servers/visual/visual_server_viewport.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/servers/visual/visual_server_viewport.h b/servers/visual/visual_server_viewport.h
index ad3bfe9cb8..4d46e39b77 100644
--- a/servers/visual/visual_server_viewport.h
+++ b/servers/visual/visual_server_viewport.h
@@ -64,6 +64,9 @@ public:
RID shadow_atlas;
int shadow_atlas_size;
+ int render_info[VS::VIEWPORT_RENDER_INFO_MAX];
+ VS::ViewportDebugDraw debug_draw;
+
VS::ViewportClearMode clear_mode;
bool rendered_in_prev_frame;
@@ -103,6 +106,10 @@ public:
shadow_atlas_size = 0;
disable_3d = false;
disable_3d_by_usage = false;
+ debug_draw = VS::VIEWPORT_DEBUG_DRAW_DISABLED;
+ for (int i = 0; i < VS::VIEWPORT_RENDER_INFO_MAX; i++) {
+ render_info[i] = 0;
+ }
}
};
@@ -168,6 +175,9 @@ public:
void viewport_set_hdr(RID p_viewport, bool p_enabled);
void viewport_set_usage(RID p_viewport, VS::ViewportUsage p_usage);
+ virtual int viewport_get_render_info(RID p_viewport, VS::ViewportRenderInfo p_info);
+ virtual void viewport_set_debug_draw(RID p_viewport, VS::ViewportDebugDraw p_draw);
+
void draw_viewports();
bool free(RID p_rid);