Go to the source code of this file.
Classes | |
struct | _FlFramebuffer |
Functions | |
static void | fl_framebuffer_dispose (GObject *object) |
static void | fl_framebuffer_class_init (FlFramebufferClass *klass) |
static void | fl_framebuffer_init (FlFramebuffer *self) |
FlFramebuffer * | fl_framebuffer_new (GLint format, size_t width, size_t height) |
GLuint | fl_framebuffer_get_id (FlFramebuffer *self) |
GLuint | fl_framebuffer_get_texture_id (FlFramebuffer *self) |
GLenum | fl_framebuffer_get_target (FlFramebuffer *self) |
size_t | fl_framebuffer_get_width (FlFramebuffer *self) |
size_t | fl_framebuffer_get_height (FlFramebuffer *self) |
|
static |
Definition at line 36 of file fl_framebuffer.cc.
References fl_framebuffer_dispose().
|
static |
size_t fl_framebuffer_get_height | ( | FlFramebuffer * | framebuffer | ) |
fl_framebuffer_get_height: @framebuffer: an #FlFramebuffer.
Gets the height of the framebuffer in pixels.
Returns: height in pixels.
Definition at line 85 of file fl_framebuffer.cc.
Referenced by render_with_blit(), and render_with_textures().
GLuint fl_framebuffer_get_id | ( | FlFramebuffer * | framebuffer | ) |
fl_framebuffer_get_id: @framebuffer: an #FlFramebuffer.
Gets the ID for this framebuffer.
Returns: OpenGL framebuffer id or 0 if creation failed.
Definition at line 69 of file fl_framebuffer.cc.
Referenced by fl_renderer_create_backing_store(), and render_with_blit().
GLenum fl_framebuffer_get_target | ( | FlFramebuffer * | framebuffer | ) |
fl_framebuffer_get_target: @framebuffer: an #FlFramebuffer.
Gets target texture (example GL_TEXTURE_2D or GL_TEXTURE_RECTANGLE).
Returns: target texture.
Definition at line 77 of file fl_framebuffer.cc.
GLuint fl_framebuffer_get_texture_id | ( | FlFramebuffer * | framebuffer | ) |
fl_framebuffer_get_texture_id: @framebuffer: an #FlFramebuffer.
Gets the ID of the texture associated with this framebuffer.
Returns: OpenGL texture id or 0 if creation failed.
Definition at line 73 of file fl_framebuffer.cc.
Referenced by render_with_textures().
size_t fl_framebuffer_get_width | ( | FlFramebuffer * | framebuffer | ) |
fl_framebuffer_get_width: @framebuffer: an #FlFramebuffer.
Gets the width of the framebuffer in pixels.
Returns: width in pixels.
Definition at line 81 of file fl_framebuffer.cc.
Referenced by render_with_blit(), and render_with_textures().
|
static |
Definition at line 40 of file fl_framebuffer.cc.
FlFramebuffer* fl_framebuffer_new | ( | GLint | format, |
size_t | width, | ||
size_t | height | ||
) |
FlFramebuffer:
#FlFramebuffer creates framebuffers and their backing textures for use by the Flutter compositor. fl_framebuffer_new: @format: format, e.g. GL_RGB, GL_BGR @width: width of texture. @height: height of texture.
Creates a new frame buffer. Requires a valid OpenGL context to create.
Returns: a new #FlFramebuffer.
Definition at line 42 of file fl_framebuffer.cc.
References format, height, and width.
Referenced by fl_renderer_create_backing_store(), and TEST().