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

Public Member Functions | |
| GlProgram ()=default | |
| GlProgram (const char *vert_src, const char *frag_src) | |
| GlProgram (const GlProgram &)=delete | |
| GlProgram (GlProgram &&o) | |
| ~GlProgram () | |
| GLuint | get () |
| GlProgram & | operator= (const GlProgram &)=delete |
| GlProgram & | operator= (GlProgram &&o) |
Private Member Functions | |
| void | swap (GlProgram &o) |
Private Attributes | |
| GLuint | program = 0 |
RAII wrapper for OpenGL program
Definition at line 70 of file opengl_utils.hpp.
|
default |
Compiles provided shaders and constructs an OpenGL program
| vert_src | vertex shader source |
| frag_src | fragment shader source |
| GlProgram::GlProgram | ( | const char * | vert_src, |
| const char * | frag_src ) |
Definition at line 104 of file opengl_utils.cpp.
References compileShader(), frag_src, program, and vert_src.

| GlProgram::~GlProgram | ( | ) |
Definition at line 125 of file opengl_utils.cpp.
References program.
|
delete |
|
inline |
Definition at line 88 of file opengl_utils.hpp.
References swap().

|
inline |
Returns the underlying OpenGL program id
Definition at line 85 of file opengl_utils.hpp.
References program.
Referenced by FlatVideoScene::enableDeinterlacing(), FlatVideoScene::render(), PanoramaScene::render(), and FlatVideoScene::resize().
Definition at line 90 of file opengl_utils.hpp.
References swap().

|
inlineprivate |
Definition at line 93 of file opengl_utils.hpp.
References program.
Referenced by GlProgram(), and operator=().
|
private |
Definition at line 96 of file opengl_utils.hpp.
Referenced by GlProgram(), ~GlProgram(), get(), and swap().