diff options
Diffstat (limited to 'demos/viewport/screen_capture')
-rw-r--r-- | demos/viewport/screen_capture/engine.cfg | 9 | ||||
-rw-r--r-- | demos/viewport/screen_capture/icon.png | bin | 7350 -> 0 bytes | |||
-rw-r--r-- | demos/viewport/screen_capture/mountains.png | bin | 927435 -> 0 bytes | |||
-rw-r--r-- | demos/viewport/screen_capture/screen_capture.gd | 16 | ||||
-rw-r--r-- | demos/viewport/screen_capture/screen_capture.scn | bin | 3482 -> 0 bytes |
5 files changed, 0 insertions, 25 deletions
diff --git a/demos/viewport/screen_capture/engine.cfg b/demos/viewport/screen_capture/engine.cfg deleted file mode 100644 index a843242720..0000000000 --- a/demos/viewport/screen_capture/engine.cfg +++ /dev/null @@ -1,9 +0,0 @@ -[application] - -name="Screen Capturing" -main_scene="res://screen_capture.scn" -icon="res://icon.png" - -[display] - -stretch_mode="2d" diff --git a/demos/viewport/screen_capture/icon.png b/demos/viewport/screen_capture/icon.png Binary files differdeleted file mode 100644 index a696824775..0000000000 --- a/demos/viewport/screen_capture/icon.png +++ /dev/null diff --git a/demos/viewport/screen_capture/mountains.png b/demos/viewport/screen_capture/mountains.png Binary files differdeleted file mode 100644 index b8435bb1a8..0000000000 --- a/demos/viewport/screen_capture/mountains.png +++ /dev/null diff --git a/demos/viewport/screen_capture/screen_capture.gd b/demos/viewport/screen_capture/screen_capture.gd deleted file mode 100644 index 9867d95452..0000000000 --- a/demos/viewport/screen_capture/screen_capture.gd +++ /dev/null @@ -1,16 +0,0 @@ - -extends Control - - -func _on_button_pressed(): - get_viewport().queue_screen_capture() - # Let two frames pass to make sure the screen was captured - yield(get_tree(), "idle_frame") - yield(get_tree(), "idle_frame") - # Retrieve the captured image - var img = get_viewport().get_screen_capture() - # Create a texture for it - var tex = ImageTexture.new() - tex.create_from_image(img) - # Set it to the capture node - get_node("capture").set_texture(tex) diff --git a/demos/viewport/screen_capture/screen_capture.scn b/demos/viewport/screen_capture/screen_capture.scn Binary files differdeleted file mode 100644 index ee847fbe62..0000000000 --- a/demos/viewport/screen_capture/screen_capture.scn +++ /dev/null |