![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include <OpenGL/GL.h>

Go to the source code of this file.
Classes | |
| struct | gl_context |
Macros | |
| #define | gl_check_error() |
| #define | GL_CONTEXT_ANY 0x00 |
| #define | GL_CONTEXT_LEGACY 0x01 |
Functions | |
| void | destroy_gl_context (struct gl_context *context) |
| void | gl_context_make_current (struct gl_context *context) |
| GLuint | glsl_compile_link (const char *vprogram, const char *fprogram) |
| bool | init_gl_context (struct gl_context *context, int which) |
| initializes specified OpenGL context | |
Definition in file gl_context.h.
| #define gl_check_error | ( | ) |
Definition at line 82 of file gl_context.h.
Referenced by draw_pause(), gl_draw(), gl_reconfigure_screen(), gl_render(), gl_render_glsl(), and glsl_compile_link().
| #define GL_CONTEXT_ANY 0x00 |
Definition at line 72 of file gl_context.h.
Referenced by configure_with(), init_gl_context(), and vidcap_spout_init().
| #define GL_CONTEXT_LEGACY 0x01 |
Definition at line 73 of file gl_context.h.
Referenced by init_gl_context(), scale_init(), vidcap_swmix_init(), and vidcap_syphon_init_common().
| void destroy_gl_context | ( | struct gl_context * | context | ) |
Definition at line 223 of file gl_context.c.
References gl_context::context, glx_free(), mac_gl_free(), and win32_context_free().
Referenced by dxt_glsl_decompress_done(), dxt_glsl_decompress_reconfigure(), scale_done(), vidcap_spout_done(), vidcap_swmix_done(), and vidcap_syphon_done().

| void gl_context_make_current | ( | struct gl_context * | context | ) |
Definition at line 236 of file gl_context.c.
References gl_context::context, glx_make_current(), mac_gl_make_current(), and win32_context_make_current().
Referenced by dxt_glsl_decompress(), dxt_glsl_decompress_done(), dxt_glsl_decompress_reconfigure(), master_worker(), oneshot_init(), scale_init(), scale_postprocess(), scale_reconfigure(), vidcap_spout_done(), vidcap_spout_grab(), vidcap_spout_init(), vidcap_swmix_done(), and vidcap_swmix_init().

| GLuint glsl_compile_link | ( | const char * | vprogram, |
| const char * | fprogram ) |
compiles and links specified program shaders
| 0 | on error |
Definition at line 147 of file gl_context.c.
References gl_check_error, IF_NOT_NULL_ELSE, log_level, LOG_LEVEL_DEBUG, LOG_LEVEL_ERROR, LOG_LEVEL_VERBOSE, log_msg(), and vprogram.
Referenced by gl_substitute_compile_link(), master_worker(), vidcap_swmix_init(), and vidcap_syphon_init_common().

| bool init_gl_context | ( | struct gl_context * | context, |
| int | which ) |
initializes specified OpenGL context
| which | GL_CONTEXT_ANY or GL_CONTEXT_LEGACY |
| [out] | context | newly created context |
| which | OpenGL version specifier |
Definition at line 69 of file gl_context.c.
References gl_context::context, debug_msg, FALSE, get_mac_kernel_version_major(), GL_CONTEXT_ANY, GL_CONTEXT_LEGACY, gl_context::gl_major, gl_context::gl_minor, glx_init(), glx_validate(), gl_context::legacy, mac_gl_init(), MAC_GL_PROFILE_3_2, MAC_GL_PROFILE_LEGACY, MK_OPENGL_VERSION, OPENGL_VERSION_LEGACY, OPENGL_VERSION_UNSPECIFIED, TRUE, and win32_context_init().
Referenced by configure_with(), scale_init(), vidcap_spout_init(), vidcap_swmix_init(), and vidcap_syphon_init_common().
