Go to the source code of this file.
Classes | |
| struct | _FlCompositorOpenGLShader |
Functions | |
| G_DEFINE_TYPE (FlCompositorOpenGLShader, fl_compositor_opengl_shader, G_TYPE_OBJECT) static gchar *get_shader_log(GLuint shader) | |
| static gchar * | get_program_log (GLuint program) |
| static void | setup_shader (FlCompositorOpenGLShader *self) |
| static void | fl_compositor_opengl_shader_dispose (GObject *object) |
| static void | fl_compositor_opengl_shader_class_init (FlCompositorOpenGLShaderClass *klass) |
| static void | fl_compositor_opengl_shader_init (FlCompositorOpenGLShader *self) |
| FlCompositorOpenGLShader * | fl_compositor_opengl_shader_new (FlOpenGLManager *opengl_manager) |
| void | fl_compositor_opengl_shader_use (FlCompositorOpenGLShader *self) |
| void | fl_compositor_opengl_shader_set_offset (FlCompositorOpenGLShader *self, double x, double y) |
| void | fl_compositor_opengl_shader_set_scale (FlCompositorOpenGLShader *self, double x, double y) |
Variables | |
| static const char * | vertex_shader_src |
| static const char * | fragment_shader_src |
|
static |
Definition at line 168 of file fl_compositor_opengl_shader.cc.
References fl_compositor_opengl_shader_dispose().
|
static |
Definition at line 143 of file fl_compositor_opengl_shader.cc.
References fl_opengl_manager_make_platform_current(), and self.
Referenced by fl_compositor_opengl_shader_class_init().
|
static |
Definition at line 173 of file fl_compositor_opengl_shader.cc.
| FlCompositorOpenGLShader * fl_compositor_opengl_shader_new | ( | FlOpenGLManager * | opengl_manager | ) |
Definition at line 175 of file fl_compositor_opengl_shader.cc.
References opengl_manager, self, and setup_shader().
Referenced by fl_compositor_opengl_new().
| void fl_compositor_opengl_shader_set_offset | ( | FlCompositorOpenGLShader * | shader, |
| double | x, | ||
| double | y | ||
| ) |
fl_compositor_opengl_shader_set_offset: @shader: an #FlCompositorOpenGLShader. @x: horizontal offset. @y: vertical offset.
Sets the layer offset uniform. The program must be current (see fl_compositor_opengl_shader_use).
Definition at line 206 of file fl_compositor_opengl_shader.cc.
| void fl_compositor_opengl_shader_set_scale | ( | FlCompositorOpenGLShader * | shader, |
| double | x, | ||
| double | y | ||
| ) |
fl_compositor_opengl_shader_set_scale: @shader: an #FlCompositorOpenGLShader. @x: horizontal scale. @y: vertical scale.
Sets the layer scale uniform. The program must be current (see fl_compositor_opengl_shader_use).
Definition at line 213 of file fl_compositor_opengl_shader.cc.
| void fl_compositor_opengl_shader_use | ( | FlCompositorOpenGLShader * | shader | ) |
fl_compositor_opengl_shader_use: @shader: an #FlCompositorOpenGLShader.
Binds the shader's vertex buffer, configures the vertex attributes and makes the program current. Requires a valid OpenGL context.
Definition at line 189 of file fl_compositor_opengl_shader.cc.
References self.
Referenced by fl_compositor_opengl_present_layers().
| G_DEFINE_TYPE | ( | FlCompositorOpenGLShader | , |
| fl_compositor_opengl_shader | , | ||
| G_TYPE_OBJECT | |||
| ) |
Definition at line 54 of file fl_compositor_opengl_shader.cc.
|
static |
Definition at line 72 of file fl_compositor_opengl_shader.cc.
Referenced by setup_shader().
|
static |
Definition at line 84 of file fl_compositor_opengl_shader.cc.
References fl_opengl_manager_make_platform_current(), fragment_shader_src, get_program_log(), self, and vertex_shader_src.
Referenced by fl_compositor_opengl_shader_new().
|
static |
Definition at line 23 of file fl_compositor_opengl_shader.cc.
Referenced by setup_shader().
|
static |
Definition at line 10 of file fl_compositor_opengl_shader.cc.
Referenced by setup_shader().