#include <epoxy/gl.h>
#include <glib-object.h>
Go to the source code of this file.
Functions | |
G_BEGIN_DECLS FlFramebuffer * | fl_framebuffer_new (GLint format, size_t width, size_t height) |
GLuint | fl_framebuffer_get_id (FlFramebuffer *framebuffer) |
GLuint | fl_framebuffer_get_texture_id (FlFramebuffer *framebuffer) |
GLenum | fl_framebuffer_get_target (FlFramebuffer *framebuffer) |
size_t | fl_framebuffer_get_width (FlFramebuffer *framebuffer) |
size_t | fl_framebuffer_get_height (FlFramebuffer *framebuffer) |
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().
G_BEGIN_DECLS 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().