| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
We are not using the frame clock anymore, so don't
pass it around.
|
|
|
|
| |
Fix some types, and say a bit more here.
|
|
|
|
|
|
| |
Primitive values are now passed by values (although vectors still
by pointer). Also since we can now no longer handle missing definitions
that is an error.
|
|
|
|
|
|
| |
We don't want to use a new shader per paintable, because then we will
need to recompile each one. Also remove some leftover unused vars from
the cogs glsl.
|
|
|
|
|
|
|
|
|
|
| |
We now always assume you pass the right amount of children for the
shader, and each such child is followed by
gtk_snapshot_gl_shader_pop_texture() and then a final
gtk_snapshot_pop().
This means we handle the 0 child case ok, and that we can validate
that the number of pops of various types are correct.
|
|
|
|
| |
This gets around 500 instances at 60fps on my system.
|
|
|
|
|
|
|
| |
Add a shader paintable to the OpenGL transitions
demo. This is reusing one of the shadertoy examples,
tweaked slightly to work as a standalone fragment
shader.
|
|
|
|
|
|
|
|
|
| |
This is a GdkPaintable implementation wrapped
around a GskGLShader. It can optionally be hooked
up to a frame clock to update a time uniform.
The code is set up for this to live as public api
in GSK, if we find it useful enough.
|
|
|
|
|
| |
We can now just use gsk_gl_shader_format_args() directly, relying
on the transfer-full of the shader args argument.
|
|
|
|
|
|
|
|
| |
This removes the fallback node from GskGLShaderNode and adds
a new function gsk_gl_shader_try_compile_for() which tries to compile a
shader against a renderer. Then you can use the return value of this
both as a way to implement the fallback, and as a way to get at
the error report in a saner way.
|
|
|
|
|
|
|
|
| |
Rename gtk_snapshot_push_glshader and friends to
gtk_snapshot_push_gl_shader, following the similar
renaming in GSK.
Update all callers.
|
|
|
|
| |
I was getting "assignment to varying fragColor" errors
|
|
|
|
|
|
|
|
|
|
|
| |
Add adds a demo showing off GskGLShaderNode in various ways.
It has a transistion widget, using some examples from
gl-transitions.com, with child widgets being both images, a GL area
and real widgets (that let you edit the transition shaders
themselves.
It also has a fancy fire effect on hove on the buttons.
|
|
|
|
|
|
| |
"Two of every kind..." Add some customized pickers
here. This found a number of issues that have been
fixed in the preceding commits.
|
|
|
|
|
|
|
|
|
| |
Redo the tag insertion function to avoid quadratic
behavior, and at the same time, fix handling of
alpha for color attributes.
Update the copy of this function in gtk4-demo
as well.
|
|
|
|
| |
Polish the text view demos a little bit.
|
| |
|
|
|
|
| |
Its almost a dictionary.
|
|\
| |
| |
| |
| | |
gtk-demo: Add a switch to headerbar demo
See merge request GNOME/gtk!2571
|
| |
| |
| |
| | |
We don't have any demos with a switch in headerbar.
|
| |
| |
| |
| |
| | |
Show how to add a context menu to a custom widget,
and how to make a GtkPicture lookalike.
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
Some more fixes for Windows
Closes #3157
See merge request GNOME/gtk!2580
|
| |/
| |
| |
| |
| |
| | |
Make sure the callback functions in the .ui files are exported, so that
those functions can be recognized at runtime so that things run
properly.
|
|\ \
| | |
| | |
| | |
| | | |
Matthiasc/for master
See merge request GNOME/gtk!2582
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
Make the builder demo show up in searches for toolbar and
menubar.
|
| | |
| | |
| | |
| | | |
Make the keyboard shortcuts work.
|
| | |
| | |
| | |
| | | |
Make the toolbar look right.
|
| | |
| | |
| | |
| | |
| | | |
Increase the inter-paragraph spacing in the info
text, to make paragraphs more clearly separated.
|
| | | |
|
| |/ |
|
|/ |
|
|
|
|
| |
Add an fps label to the scrolling demo.
|
|
|
|
| |
Use tnum for the fps label to avoid jiggling.
|
|
|
|
|
| |
Remove another copy of this code in the theme
switching benchmark.
|
|
|
|
|
|
| |
When a group is selected (such as 'Benchmark'),
make the run button insensitive - there is nothing
to run.
|
|
|
|
| |
Make gtk-demo show itself as a useful example.
|
|
|
|
|
|
|
|
|
| |
Add the names of the main widgets as keywords to
our demos, but also things like "game". This helps
finding relevant demos in our growing list. You
can now for example type "label", and find the
"error states" and "links" demos showing GtkLabel
features.
|
|
|
|
|
|
|
|
| |
Filter the sidebar on keywords that can be provided
by the demos. We extract keywords from the doc comment
at the top of each demo source by looking for words that
look like class names. We also allow to specify keywords
explicitly.
|
|
|
|
|
|
| |
Ignore lines starting with # in the info comment at
the top of source files. This will be used to add
keywords for search in following commits.
|
|
|
|
|
|
| |
This one is a more or less direct copy of the
settings dialog from widget-factory, demonstrating
error states and builder scopes.
|
|
|
|
|
|
|
| |
In the video player demo, we have a button to make
the window fullscreen, but no easy way back. Add
the usual F11 keybinding, to make things at least
somewhat recoverable.
|
|
|
|
|
| |
Add buttons to show the gtk-logo animation and
the Big Buck Bunny trailer.
|
|
|
|
|
|
| |
The animated background demos was referring to the
pixbuf demo that was removed a while ago. Reword
the text accordingly.
|
|
|
|
|
| |
Add a simple demo for adding emblems to icons
using GdkPaintable.
|
|
|
|
|
|
|
|
| |
Make it possible to have no background in
the animated paintable. This will be used
in a future demo.
Update all users.
|
|
|
|
|
| |
The paintable demos were forgetting to clear
their window variable.
|
|
|
|
|
|
| |
That is what it is.
Fixes: #2790
|
| |
|
|\
| |
| |
| |
| | |
gtk-demo: Add shadertoy demo
See merge request GNOME/gtk!2540
|