forked from AuroraMiddleware/gtk
8bcb031418
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.
22 lines
750 B
C
22 lines
750 B
C
#ifndef __GTK_SHADER_STACK_H__
|
|
#define __GTK_SHADER_STACK_H__
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define GTK_TYPE_SHADER_STACK (gtk_shader_stack_get_type ())
|
|
G_DECLARE_FINAL_TYPE (GtkShaderStack, gtk_shader_stack, GTK, SHADER_STACK, GtkWidget)
|
|
|
|
GtkWidget * gtk_shader_stack_new (void);
|
|
void gtk_shader_stack_set_shader (GtkShaderStack *self,
|
|
GskGLShader *shader);
|
|
void gtk_shader_stack_add_child (GtkShaderStack *self,
|
|
GtkWidget *child);
|
|
void gtk_shader_stack_transition (GtkShaderStack *self,
|
|
gboolean forward);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __GTK_SHADER_STACK_H__ */
|