gtk2/demos/gtk-demo
Alexander Larsson 0092a08dfc gtk-demo: Add shadertoy demo
This adds a small demo of using OpenGL shaders, it renders a quad
over the entire widget with a custom fragment shader. The coordinates
and the uniform names are compatible with the ones on shadertoy.com
(although some features, like texture inputs are missing currently).

The default shader in the demo is
https://www.shadertoy.com/view/wsjBD3 which is CC0, so it is
redistributable by Gtk+ (most other shaders are CC-BY-NC-SA which
isn't obviously compatible). I also added a set of buttons loading
a few other CC0 shaders I found.
2020-09-08 09:56:25 +02:00
..
data gtk-demo: Rename to org.gtk.Demo4 2019-04-02 00:27:32 +00:00
icons/16x16 Add a missing icon 2019-02-13 12:49:31 -05:00
alias_cursor.png
alienplanet.glsl gtk-demo: Add shadertoy demo 2020-09-08 09:56:25 +02:00
all_scroll_cursor.png
alphatest.png
apple-red.png
application_demo.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
application.c gtk-demo: Cosmetics 2020-08-08 23:41:50 -04:00
application.ui grid layout: Rename some properties 2020-08-02 17:58:03 -04:00
assistant.c Replace "gdouble" with "double" 2020-07-25 00:47:36 +02:00
background.jpg
blendmodes.ui gtk-demo: Avoid double borders in the blendmodes demo 2020-08-25 21:24:10 +09:00
blends.png demo: add a demo for blend modes 2016-07-03 17:24:47 -04:00
bluroverlay.c Drop style class defines 2020-08-14 07:03:27 -04:00
bluroverlay.h gtk-demo: Port blur demo from GtkBin 2020-05-04 22:53:08 -04:00
brick2.png
brick.png
builder.c gtk-demo: Fix the builder demo 2020-08-13 17:19:59 -04:00
cell_cursor.png
clipboard.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
cmy.jpg demo: add a demo for blend modes 2016-07-03 17:24:47 -04:00
cogs.glsl gtk-demo: Add shadertoy demo 2020-09-08 09:56:25 +02:00
col_resize_cursor.png
color.names.txt gtk-demo: Add a large grid demo 2020-05-30 19:31:38 -04:00
combobox.c Replace "gint" with "int" 2020-07-25 00:47:36 +02:00
constraints2.c gtk-demo: Simplify the constraints demos 2020-09-05 22:54:16 -04:00
constraints3.c gtk-demo: Simplify the constraints demos 2020-09-05 22:54:16 -04:00
constraints.c gtk-demo: Simplify the constraints demos 2020-09-05 22:54:16 -04:00
context_menu_cursor.png gtk3-demo: Add context-menu cursor 2016-05-17 13:39:18 -04:00
copy_cursor.png
crosshair_cursor.png
css_accordion.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
css_accordion.css gtk3-demo: Fix some css warnings 2016-05-30 16:19:19 -04:00
css_basics.c scrolledwindow: Don't take adjustments in new() 2020-06-24 11:25:09 -04:00
css_basics.css gtk4-demo: Add background to CSS Basics demo 2020-08-28 04:35:46 +02:00
css_blendmodes.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
css_blendmodes.css gtk3-demo: Simplify the blendmodes example a bit 2016-07-04 09:59:25 -04:00
css_multiplebgs.c scrolledwindow: Don't take adjustments in new() 2020-06-24 11:25:09 -04:00
css_multiplebgs.css
css_pixbufs.c scrolledwindow: Don't take adjustments in new() 2020-06-24 11:25:09 -04:00
css_pixbufs.css Merge branch 'demo_css_pixbufs_fix' into 'master' 2020-09-04 14:40:36 +00:00
css_shadows.c gtk-demo: Cosmetic change to the css shadows demo 2020-08-29 16:42:30 -04:00
css_shadows.css gtk3-demo: Update css 2016-02-27 22:39:09 -05:00
cssview.css gtk3-demo: Fix some css warnings 2016-05-30 16:19:19 -04:00
cursors.c gtk-demo: Cosmetics 2020-06-06 22:05:52 -04:00
cursors.ui gtk-demo: Group small images 2020-08-12 20:26:15 -04:00
decor1.png
decor2.png
default_cursor.png
demo2layout.c layoutmanager demo: Make icons come out upright 2020-09-04 13:40:10 -04:00
demo2layout.h Add another layout manager demo 2020-09-03 10:09:22 -04:00
demo2widget.c Add another layout manager demo 2020-09-03 10:09:22 -04:00
demo2widget.h Add another layout manager demo 2020-09-03 10:09:22 -04:00
demo.gresource.xml gtk-demo: Add shadertoy demo 2020-09-08 09:56:25 +02:00
demo.ui Remove ATK 2020-07-26 20:31:14 +01:00
demochild.c gtk-demo: Add a layout manager demo 2020-08-11 23:10:48 -04:00
demochild.h gtk-demo: Add a layout manager demo 2020-08-11 23:10:48 -04:00
demoimage.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
demoimage.h gtk-demo: Polish the clipboard demo 2020-04-25 21:29:39 -04:00
demolayout.c gtk-demo: Add a layout manager demo 2020-08-11 23:10:48 -04:00
demolayout.h gtk-demo: Add a layout manager demo 2020-08-11 23:10:48 -04:00
demotaggedentry.c gtk-demo: Simplify the tagged entry demo 2020-08-02 21:39:23 -04:00
demotaggedentry.h gtk-demo: Modernize the tag entry demo 2020-06-19 11:42:47 -04:00
demowidget.c gtk-demo: Add a layout manager demo 2020-08-11 23:10:48 -04:00
demowidget.h gtk-demo: Add a layout manager demo 2020-08-11 23:10:48 -04:00
dialog.c Replace "gint" with "int" 2020-07-25 00:47:36 +02:00
dnd.c gtk-demo: Avoid double borders in the dnd demo 2020-08-25 21:24:10 +09:00
dnd.css gtk-demo: Add animated icons to the dnd demo 2020-06-19 19:26:43 -04:00
drawingarea.c Replace "gdouble" with "double" 2020-07-25 00:47:36 +02:00
dropdown.c dropdown: Revise constructors 2020-07-26 18:09:54 -04:00
ducky.png demo: add a demo for blend modes 2016-07-03 17:24:47 -04:00
e_resize_cursor.png
editable_cells.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
entry_completion.c gtk-demo: Enable inline completion 2020-06-24 13:02:50 -04:00
entry_undo.c gtk-demo: Cosmetic changes 2020-06-17 18:12:01 -04:00
ew_resize_cursor.png
expander.c fix resource not found in expander demo 2020-08-13 22:46:38 +02:00
filtermodel.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
filtermodel.ui grid layout: Rename some properties 2020-08-02 17:58:03 -04:00
fishbowl.c demos: Fix running on Visual Studio builds 2020-07-31 23:20:25 +08:00
fishbowl.ui headerbar: Show title buttons by default 2020-07-02 23:51:16 +05:00
fixed.c scrolledwindow: Don't take adjustments in new() 2020-06-24 11:25:09 -04:00
fixed.css Add GtkFixed demo 2019-04-02 20:52:49 +01:00
floppybuddy.gif
flowbox.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
font_features.c Clean up uses of gtk_toggle_button_get/set_active 2020-08-30 21:23:25 -04:00
font-features.ui headerbar: Show title buttons by default 2020-07-02 23:51:16 +05:00
fontify.c gtk-demo: Do markup parsing incrementally too 2020-08-13 16:33:16 -04:00
fontify.h gtk-demo: Move the highlighting to a separate file 2020-08-13 16:33:16 -04:00
fontplane.c Replace "gdouble" with "double" 2020-07-25 00:47:36 +02:00
fontplane.h longpressgesture: Port to new API model 2018-04-26 17:59:42 +02:00
fontrendering.c fontrendering demo: Stop using radio buttons 2020-08-30 22:14:05 -04:00
fontrendering.ui fontrendering demo: Stop using radio buttons 2020-08-30 22:14:05 -04:00
four_point_transform.c gtk-demo: Add some comments 2020-09-06 08:43:58 -04:00
four_point_transform.h Add another layout manager demo 2020-09-03 10:09:22 -04:00
gears.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
geninclude.py demo: Use a listview as sidebar 2020-05-30 19:26:45 -04:00
gestures.c Replace "gdouble" with "double" 2020-07-25 00:47:36 +02:00
glarea-gl.fs.glsl demo: Add GLES support to the GtkGLArea demo 2016-04-25 14:35:02 +01:00
glarea-gl.vs.glsl demo: Add GLES support to the GtkGLArea demo 2016-04-25 14:35:02 +01:00
glarea-gles.fs.glsl demos: Fix glarea demo on OpenGL/ES 2020-07-30 14:26:33 +08:00
glarea-gles.vs.glsl demo: Add GLES support to the GtkGLArea demo 2016-04-25 14:35:02 +01:00
glarea.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
glowingstars.glsl gtk-demo: Add shadertoy demo 2020-09-08 09:56:25 +02:00
gnome-applets.png
gnome-calendar.png
gnome-foot.png
gnome-fs-directory.png
gnome-fs-regular.png
gnome-gimp.png
gnome-gmush.png
gnome-gsame.png
gnu-keys.png
grab_cursor.png
grabbing_cursor.png
gtk_logo_cursor.png gtk-demo: Update cursors demo 2017-11-05 00:07:18 +01:00
gtk-logo.webm gtk-demo: Add a video example (with controls) to the images demo 2018-03-18 21:01:23 +01:00
gtkfishbowl.c Replace "gint" with "int" 2020-07-25 00:47:36 +02:00
gtkfishbowl.h demo: Clean up GtkFishbowl widget 2018-04-24 21:55:37 +02:00
gtkgears.c *: Fix spelling mistakes found by codespell 2020-08-21 15:29:34 +02:00
gtkgears.h gtk-demo: Add gears to the bowl 2018-01-17 14:39:46 -05:00
gtkshadertoy.c gtk-demo: Add shadertoy demo 2020-09-08 09:56:25 +02:00
gtkshadertoy.h gtk-demo: Add shadertoy demo 2020-09-08 09:56:25 +02:00
hand_cursor.png
headerbar.c headerbar: Show title buttons by default 2020-07-02 23:51:16 +05:00
help_cursor.png
help-overlay.ui gtk-demo: Add a shortcuts window 2020-04-26 22:14:10 -04:00
hypertext.c Replace "gdouble" with "double" 2020-07-25 00:47:36 +02:00
iconscroll.c list widgets: Use selection models in the api 2020-08-31 17:15:05 -04:00
iconscroll.ui headerbar: Show title buttons by default 2020-07-02 23:51:16 +05:00
iconview_edit.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
iconview.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
images.c gtk-demo: Make the image demo more robust 2020-08-10 16:35:56 -04:00
infobar.c Replace "gint" with "int" 2020-07-25 00:47:36 +02:00
language-names.c gtk-demo: Use harfbuzz for font features 2019-11-01 13:01:54 -04:00
language-names.h gtk-demo: Update font explorer example 2018-01-03 14:56:36 -05:00
layoutmanager2.c add a missing comma 2020-09-05 13:49:01 +02:00
layoutmanager.c Add another layout manager demo 2020-09-03 10:09:22 -04:00
links.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
list_store.c *: Fix spelling mistakes found by codespell 2020-08-21 15:29:34 +02:00
listbox2.c Clean up uses of gtk_toggle_button_get/set_active 2020-08-30 21:23:25 -04:00
listbox2.ui gtk-demo: take off the makeup 2020-08-13 16:30:22 -04:00
listbox.c gtk-demo: Group the listbox demos 2020-08-09 12:36:06 -04:00
listbox.ui grid layout: Rename some properties 2020-08-02 17:58:03 -04:00
listview_applauncher.c list widgets: Simplify the constructors 2020-09-01 12:24:06 -04:00
listview_clocks.c list widgets: Simplify the constructors 2020-09-01 12:24:06 -04:00
listview_colors.c list widgets: Simplify the constructors 2020-09-01 12:24:06 -04:00
listview_colors.css gtk-demo: Track the selection 2020-07-02 22:59:03 -04:00
listview_filebrowser.c list widgets: Use selection models in the api 2020-08-31 17:15:05 -04:00
listview_filebrowser.css gtk-demo: Make style apply in the file browser 2020-07-12 08:11:42 -04:00
listview_filebrowser.ui list widgets: Use selection models in the api 2020-08-31 17:15:05 -04:00
listview_minesweeper_cell.ui gtk-demo: Add a minesweeper demo 2020-05-30 19:26:46 -04:00
listview_minesweeper.c gtk-demo: Add a minesweeper demo 2020-05-30 19:26:46 -04:00
listview_minesweeper.ui headerbar: Show title buttons by default 2020-07-02 23:51:16 +05:00
listview_settings.c list widgets: Use selection models in the api 2020-08-31 17:15:05 -04:00
listview_settings.ui gtk-demo: Use style classes in the settings demo 2020-08-13 16:30:22 -04:00
listview_weather.c list widgets: Simplify the constructors 2020-09-01 12:24:06 -04:00
listview_weather.txt gtk-demo: Add a rough start at a Weather demo 2020-05-30 19:26:45 -04:00
listview_words.c list widgets: Simplify the constructors 2020-09-01 12:24:06 -04:00
main-listitem.ui demo: Use a listview as sidebar 2020-05-30 19:26:45 -04:00
main.c list widgets: Use selection models in the api 2020-08-31 17:15:05 -04:00
main.ui gtk-demo: Use a style class on the sidebar 2020-08-13 16:30:21 -04:00
mandelbrot.glsl gtk-demo: Add shadertoy demo 2020-09-08 09:56:25 +02:00
markup.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
markup.txt gtk-demo: Add overline to the markup demo 2020-06-06 21:38:31 -04:00
menus.ui gtk-demo: Stop using appmenu apis 2020-05-22 17:31:05 -04:00
meson.build gtk-demo: Add shadertoy demo 2020-09-08 09:56:25 +02:00
messages.txt gtk-demo: Fix a typo in the listbox demo 2020-06-25 14:28:29 -04:00
move_cursor.png
n_resize_cursor.png
ne_resize_cursor.png
neon.glsl gtk-demo: Add shadertoy demo 2020-09-08 09:56:25 +02:00
nesw_resize_cursor.png
no_drop_cursor.png gtk-demo: Update no-drop cursor image 2016-05-17 13:40:52 -04:00
none_cursor.png
not_allowed_cursor.png
ns_resize_cursor.png
nw_resize_cursor.png
nwse_resize_cursor.png
org.gtk.Demo4.appdata.xml Update our appdata files 2020-07-29 17:58:45 -04:00
org.gtk.Demo4.desktop gtk-demo: Rename to org.gtk.Demo4 2019-04-02 00:27:32 +00:00
org.gtk.Demo4.gschema.xml gtk-demo: Rename to org.gtk.Demo4 2019-04-02 00:27:32 +00:00
overlay2.c Replace "gint" with "int" 2020-07-25 00:47:36 +02:00
overlay.c *: Fix spelling mistakes found by codespell 2020-08-21 15:29:34 +02:00
pagesetup.c Replace "gint" with "int" 2020-07-25 00:47:36 +02:00
paint.c Replace "gdouble" with "double" 2020-07-25 00:47:36 +02:00
paintable_animated.c Use gtk_window_destroy 2020-05-11 12:20:57 -04:00
paintable_mediastream.c mediastream demo: Add a weak pointer to the window 2020-08-01 08:59:46 +02:00
paintable.c Use gtk_window_destroy 2020-05-11 12:20:57 -04:00
paintable.h demos: Round up the paintable demos with a media stream 2018-03-18 21:01:23 +01:00
panes.c Clean up uses of gtk_toggle_button_get/set_active 2020-08-30 21:23:25 -04:00
password_entry.c gtk-demo: Drop the awards 2020-06-04 10:19:44 -04:00
peg_solitaire.c *: Fix spelling mistakes found by codespell 2020-08-21 15:29:34 +02:00
pickers.c gtk-demo: Make the color picker demo less boring 2020-08-24 17:19:36 -04:00
pointer_cursor.png
portland-rose.jpg gtk-demo: Add a new overlay demo 2017-10-06 21:58:56 -04:00
printing.c Replace "gdouble" with "double" 2020-07-25 00:47:36 +02:00
progress_cursor.png
puzzlepiece.c puzzlepiece: Use new snapshot transforms 2019-02-21 19:47:28 +01:00
puzzlepiece.h demo: Add the sliding puzzle demo 2018-06-07 21:47:30 -04:00
reset.css gtk3-demo: Update css 2016-02-27 22:39:09 -05:00
revealer.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
revealer.ui grid layout: Rename some properties 2020-08-02 17:58:03 -04:00
rotated_text.c Drop style class defines 2020-08-14 07:03:27 -04:00
row_resize_cursor.png
s_resize_cursor.png
scale.c Use gtk_window_destroy 2020-05-11 12:20:57 -04:00
scale.ui grid layout: Rename some properties 2020-08-02 17:58:03 -04:00
script-names.c gtk-demo: Update font explorer example 2018-01-03 14:56:36 -05:00
script-names.h gtk-demo: Update font explorer example 2018-01-03 14:56:36 -05:00
se_resize_cursor.png
search_entry2.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
search_entry.c gtk-demo: Fix cleanup of search entry demo 2020-08-02 21:53:59 -04:00
shadertoy.c gtk-demo: Add shadertoy demo 2020-09-08 09:56:25 +02:00
shortcut_triggers.c Don't use container api on GtkListBox 2020-05-11 22:21:39 -04:00
shortcuts-boxes.ui demos: Update GtkGrid definitions in UI files 2019-04-05 00:12:26 +01:00
shortcuts-builder.ui demos: Update GtkGrid definitions in UI files 2019-04-05 00:12:26 +01:00
shortcuts-clocks.ui demos: Update GtkGrid definitions in UI files 2019-04-05 00:12:26 +01:00
shortcuts-gedit.ui demos: Update GtkGrid definitions in UI files 2019-04-05 00:12:26 +01:00
shortcuts.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
shortcuts.ui Drop the margin property 2020-02-25 20:59:04 -05:00
sidebar.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
singular_value_decomposition.c gtk-demo: Add some comments 2020-09-06 08:43:58 -04:00
singular_value_decomposition.h Add another layout manager demo 2020-09-03 10:09:22 -04:00
sizegroup.c Clean up uses of gtk_toggle_button_get/set_active 2020-08-30 21:23:25 -04:00
sliding_puzzle.c Drop style class defines 2020-08-14 07:03:27 -04:00
spinbutton.c gtk-demo: Fix an indentation mishap 2020-08-09 11:14:28 -04:00
spinbutton.ui grid layout: Rename some properties 2020-08-02 17:58:03 -04:00
spinner.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
stack.c Use gtk_window_destroy 2020-05-11 12:20:57 -04:00
stack.ui grid layout: Rename some properties 2020-08-02 17:58:03 -04:00
sw_resize_cursor.png
tabs.c scrolledwindow: Don't take adjustments in new() 2020-06-24 11:25:09 -04:00
tagged_entry.c gtk-demo: Cosmetic changes to the tagged entry demo 2020-06-17 18:06:28 -04:00
tagstyle.css Add a tagged entry demo 2019-03-15 13:21:26 -04:00
text_cursor.png
textmask.c gtk-demo: Cosmetic fixes to the textmask demo 2020-08-09 18:05:27 -04:00
textscroll.c scrolledwindow: Don't take adjustments in new() 2020-06-24 11:25:09 -04:00
textundo.c scrolledwindow: Don't take adjustments in new() 2020-06-24 11:25:09 -04:00
textview.c scrolledwindow: Don't take adjustments in new() 2020-06-24 11:25:09 -04:00
themes.c gtk-demo: Add warnings to the themes demo 2020-08-09 16:36:00 -04:00
themes.ui gtk-demo: Add warnings to the themes demo 2020-08-09 16:36:00 -04:00
theming_style_classes.c Use gtk_window_destroy 2020-05-11 12:20:57 -04:00
theming.ui demos: Remove can-focus from ui files 2020-04-04 00:28:34 -04:00
transparent.c Use gtk_window_destroy 2020-05-11 12:20:57 -04:00
tree_store.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
vertical_text_cursor.png
video_player.c gtk-demo: Give the video player a default size 2020-08-10 16:36:36 -04:00
w_resize_cursor.png
wait_cursor.png
zoom_in_cursor.png
zoom_out_cursor.png