diff options
author | clayjohn <claynjohn@gmail.com> | 2019-05-08 11:25:34 -0700 |
---|---|---|
committer | clayjohn <claynjohn@gmail.com> | 2019-05-13 15:20:15 -0700 |
commit | 65c211d30325b4d4573cb049508d3d59ecff6214 (patch) | |
tree | 61469243f98fb2aabb4dda74b237132839b29df5 /drivers/gles2/rasterizer_storage_gles2.h | |
parent | 86a74e2cb3f22b1d7f84f41cce673679d1b08a18 (diff) |
Implement ability to render viewports directly to screen
Diffstat (limited to 'drivers/gles2/rasterizer_storage_gles2.h')
-rw-r--r-- | drivers/gles2/rasterizer_storage_gles2.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gles2/rasterizer_storage_gles2.h b/drivers/gles2/rasterizer_storage_gles2.h index 3134082e2a..af57aa3d9b 100644 --- a/drivers/gles2/rasterizer_storage_gles2.h +++ b/drivers/gles2/rasterizer_storage_gles2.h @@ -1175,7 +1175,7 @@ public: } } external; - int width, height; + int x, y, width, height; bool flags[RENDER_TARGET_FLAG_MAX]; @@ -1192,6 +1192,8 @@ public: multisample_color(0), multisample_depth(0), multisample_active(false), + x(0), + y(0), width(0), height(0), used_in_frame(false), @@ -1209,6 +1211,7 @@ public: void _render_target_allocate(RenderTarget *rt); virtual RID render_target_create(); + virtual void render_target_set_position(RID p_render_target, int p_x, int p_y); virtual void render_target_set_size(RID p_render_target, int p_width, int p_height); virtual RID render_target_get_texture(RID p_render_target) const; virtual void render_target_set_external_texture(RID p_render_target, unsigned int p_texture_id); |