summaryrefslogtreecommitdiff
path: root/demos/viewport/screen_capture
diff options
context:
space:
mode:
Diffstat (limited to 'demos/viewport/screen_capture')
-rw-r--r--demos/viewport/screen_capture/engine.cfg9
-rw-r--r--demos/viewport/screen_capture/icon.pngbin7350 -> 0 bytes
-rw-r--r--demos/viewport/screen_capture/mountains.pngbin927435 -> 0 bytes
-rw-r--r--demos/viewport/screen_capture/screen_capture.gd16
-rw-r--r--demos/viewport/screen_capture/screen_capture.scnbin3482 -> 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
deleted file mode 100644
index a696824775..0000000000
--- a/demos/viewport/screen_capture/icon.png
+++ /dev/null
Binary files differ
diff --git a/demos/viewport/screen_capture/mountains.png b/demos/viewport/screen_capture/mountains.png
deleted file mode 100644
index b8435bb1a8..0000000000
--- a/demos/viewport/screen_capture/mountains.png
+++ /dev/null
Binary files differ
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
deleted file mode 100644
index ee847fbe62..0000000000
--- a/demos/viewport/screen_capture/screen_capture.scn
+++ /dev/null
Binary files differ