You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
back buffer copy node, to improve on texscreen()
back buffer copy node and respective demo
This commit is contained in:
@@ -769,6 +769,12 @@ public:
|
||||
mutable Rect2 rect;
|
||||
CanvasItem*next;
|
||||
CanvasItemMaterial* material;
|
||||
struct CopyBackBuffer {
|
||||
Rect2 rect;
|
||||
Rect2 screen_rect;
|
||||
bool full;
|
||||
};
|
||||
CopyBackBuffer *copy_back_buffer;
|
||||
|
||||
|
||||
float final_opacity;
|
||||
@@ -904,8 +910,8 @@ public:
|
||||
}
|
||||
|
||||
void clear() { for (int i=0;i<commands.size();i++) memdelete( commands[i] ); commands.clear(); clip=false; rect_dirty=true; final_clip_owner=NULL; material_owner=NULL;}
|
||||
CanvasItem() { light_mask=1; vp_render=NULL; next=NULL; final_clip_owner=NULL; clip=false; final_opacity=1; blend_mode=VS::MATERIAL_BLEND_MODE_MIX; visible=true; rect_dirty=true; custom_rect=false; ontop=true; material_owner=NULL; material=NULL; }
|
||||
virtual ~CanvasItem() { clear(); }
|
||||
CanvasItem() { light_mask=1; vp_render=NULL; next=NULL; final_clip_owner=NULL; clip=false; final_opacity=1; blend_mode=VS::MATERIAL_BLEND_MODE_MIX; visible=true; rect_dirty=true; custom_rect=false; ontop=true; material_owner=NULL; material=NULL; copy_back_buffer=NULL; }
|
||||
virtual ~CanvasItem() { clear(); if (copy_back_buffer) memdelete(copy_back_buffer); }
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user