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

Public Member Functions | |
| void | allocateTextures () |
| Texture & | get_back () |
| Texture & | get_front () |
| bool | is_new_front_available () const |
| void | swap_back () |
| void | swap_front () |
Private Attributes | |
| Texture | back |
| Texture | front |
| Texture | mid |
| bool | new_front_available = false |
Class containing 3 Texture objects to use as a triple buffer.
Definition at line 348 of file opengl_utils.hpp.
|
inline |
Definition at line 350 of file opengl_utils.hpp.
References Texture::allocate(), back, front, and mid.
Referenced by PanoramaScene::PanoramaScene().

|
inline |
Returns a reference to the back texture
Definition at line 359 of file opengl_utils.hpp.
References back.
Referenced by PanoramaScene::put_frame().
|
inline |
Returns a reference to the front texture
Definition at line 364 of file opengl_utils.hpp.
References front.
Referenced by PanoramaScene::render().
|
inline |
Returns the state of the flag indicating a new texture
Definition at line 387 of file opengl_utils.hpp.
References new_front_available.
Referenced by PanoramaScene::render().
|
inline |
Should be called after writing to back texture is finished. Swaps the back and mid textures and sets a flag indicating that a new texture is available for reading
Definition at line 371 of file opengl_utils.hpp.
References back, mid, new_front_available, and Texture::swap().
Referenced by PanoramaScene::put_frame().

|
inline |
Swaps front and mid texture. Unsets the flag indicating a new texture.
Definition at line 379 of file opengl_utils.hpp.
References front, mid, new_front_available, and Texture::swap().
Referenced by PanoramaScene::render().

|
private |
Definition at line 390 of file opengl_utils.hpp.
Referenced by allocateTextures(), get_back(), and swap_back().
|
private |
Definition at line 391 of file opengl_utils.hpp.
Referenced by allocateTextures(), get_front(), and swap_front().
|
private |
Definition at line 392 of file opengl_utils.hpp.
Referenced by allocateTextures(), swap_back(), and swap_front().
|
private |
Definition at line 394 of file opengl_utils.hpp.
Referenced by is_new_front_available(), swap_back(), and swap_front().