![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include <opengl_utils.hpp>

Public Member Functions | |
| Framebuffer () | |
| Framebuffer (const Framebuffer &)=delete | |
| Framebuffer (Framebuffer &&o) | |
| ~Framebuffer () | |
| void | attach_texture (const Texture &tex) |
| void | attach_texture (GLuint tex) |
| GLuint | get () |
| Framebuffer & | operator= (const Framebuffer &)=delete |
| Framebuffer & | operator= (Framebuffer &&o) |
Public Attributes | |
| Fb_handle_uniq | handle |
| uint32_t | height = 0 |
| Fb_id_uniq | id |
| MemoryMapping | map |
| uint32_t | pitch = 0 |
| uint32_t | pix_fmt = 0 |
| size_t | size = 0 |
| uint32_t | width = 0 |
Private Member Functions | |
| void | swap (Framebuffer &o) |
Private Attributes | |
| GLuint | fbo = 0 |
|
inline |
Constructs a new framebuffer object
Definition at line 213 of file opengl_utils.hpp.
References fbo.
|
inline |
Definition at line 217 of file opengl_utils.hpp.
References fbo.
|
delete |
|
inline |
Definition at line 222 of file opengl_utils.hpp.
References swap().

|
inline |
Attaches a texture to the contained framebuffer
| tex | Texture object containg the texture to attach |
Definition at line 243 of file opengl_utils.hpp.
References attach_texture(), and Texture::get().

| void Framebuffer::attach_texture | ( | GLuint | tex | ) |
Attaches a texture to the contained framebuffer
| tex | Id of texture to attach |
Definition at line 306 of file opengl_utils.cpp.
References fbo.
Referenced by attach_texture().
|
inline |
Returns the underlying OpenGL framebuffer id
Definition at line 229 of file opengl_utils.hpp.
References fbo.
|
delete |
|
inline |
Definition at line 224 of file opengl_utils.hpp.
References swap().

|
inlineprivate |
Definition at line 248 of file opengl_utils.hpp.
References fbo.
Referenced by Framebuffer(), and operator=().
|
private |
Definition at line 252 of file opengl_utils.hpp.
Referenced by Framebuffer(), ~Framebuffer(), attach_texture(), get(), and swap().
| Fb_handle_uniq Framebuffer::handle |
Definition at line 338 of file drm.cpp.
Referenced by create_dumb_fb().
| uint32_t Framebuffer::height = 0 |
Definition at line 334 of file drm.cpp.
Referenced by create_dumb_fb(), and draw_frame().
| Fb_id_uniq Framebuffer::id |
Definition at line 342 of file drm.cpp.
Referenced by create_dumb_fb(), draw_splash(), and swap_buffers().
| MemoryMapping Framebuffer::map |
Definition at line 343 of file drm.cpp.
Referenced by create_dumb_fb(), and draw_frame().
| uint32_t Framebuffer::pitch = 0 |
Definition at line 335 of file drm.cpp.
Referenced by create_dumb_fb(), and draw_frame().
| size_t Framebuffer::size = 0 |
Definition at line 336 of file drm.cpp.
Referenced by create_dumb_fb().
| uint32_t Framebuffer::width = 0 |
Definition at line 333 of file drm.cpp.
Referenced by create_dumb_fb(), and draw_frame().