![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include <stdio.h>#include "win32_gl_common.h"#include "debug.h"#include "gl_context.h"#include "utils/macros.h"
Go to the source code of this file.
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.c.
| 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
| [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().
