Go to the source code of this file.
Functions | |
| G_BEGIN_DECLS | G_DECLARE_FINAL_TYPE (FlCompositorOpenGLShader, fl_compositor_opengl_shader, FL, COMPOSITOR_OPENGL_SHADER, GObject) FlCompositorOpenGLShader *fl_compositor_opengl_shader_new(FlOpenGLManager *opengl_manager) |
| void | fl_compositor_opengl_shader_use (FlCompositorOpenGLShader *shader) |
| void | fl_compositor_opengl_shader_set_offset (FlCompositorOpenGLShader *shader, double x, double y) |
| void | fl_compositor_opengl_shader_set_scale (FlCompositorOpenGLShader *shader, double x, double y) |
| 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_BEGIN_DECLS G_DECLARE_FINAL_TYPE | ( | FlCompositorOpenGLShader | , |
| fl_compositor_opengl_shader | , | ||
| FL | , | ||
| COMPOSITOR_OPENGL_SHADER | , | ||
| GObject | |||
| ) |
FlCompositorOpenGLShader:
#FlCompositorOpenGLShader is the shader program used by #FlCompositorOpenGL to composite Flutter layers onto the framebuffer. fl_compositor_opengl_shader_new: @opengl_manager: an #FlOpenGLManager.
Creates and compiles the compositor shader program. Requires a valid OpenGL context to create.
Returns: a new #FlCompositorOpenGLShader.