VLC
3.0.15
|
Data Structures | |
struct | vlc_gl_priv_t |
struct | vlc_gl_surface |
Typedefs | |
typedef struct vlc_gl_surface | vlc_gl_surface_t |
Functions | |
vlc_gl_t * | vlc_gl_Create (struct vout_window_t *wnd, unsigned flags, const char *name) |
Creates an OpenGL context (and its underlying surface). More... | |
void | vlc_gl_Hold (vlc_gl_t *gl) |
void | vlc_gl_Release (vlc_gl_t *gl) |
static void | vlc_gl_surface_ResizeNotify (vout_window_t *surface, unsigned width, unsigned height) |
vlc_gl_t * | vlc_gl_surface_Create (vlc_object_t *obj, const vout_window_cfg_t *cfg, struct vout_window_t **restrict wp) |
bool | vlc_gl_surface_CheckSize (vlc_gl_t *gl, unsigned *restrict width, unsigned *restrict height) |
Checks if the dimensions of the surface used by the OpenGL context have changed (since the previous call), and the OpenGL viewport should be updated. More... | |
void | vlc_gl_surface_Destroy (vlc_gl_t *gl) |
typedef struct vlc_gl_surface vlc_gl_surface_t |
vlc_gl_t* vlc_gl_Create | ( | struct vout_window_t * | wnd, |
unsigned | flags, | ||
const char * | name | ||
) |
Creates an OpenGL context (and its underlying surface).
wnd | window to use as OpenGL surface |
flags | OpenGL context type |
name | module name (or NULL for auto) |
Referenced by vlc_gl_surface_Create().
void vlc_gl_Hold | ( | vlc_gl_t * | gl | ) |
References vlc_gl_priv_t::gl, and vlc_gl_priv_t::ref_count.
void vlc_gl_Release | ( | vlc_gl_t * | gl | ) |
References vlc_gl_priv_t::gl, vlc_gl_t::module, module_unneed, vlc_gl_priv_t::ref_count, and vlc_object_release.
Referenced by vlc_gl_surface_Destroy().
bool vlc_gl_surface_CheckSize | ( | vlc_gl_t * | gl, |
unsigned *restrict | width, | ||
unsigned *restrict | height | ||
) |
Checks if the dimensions of the surface used by the OpenGL context have changed (since the previous call), and the OpenGL viewport should be updated.
References vlc_gl_surface::height, vlc_gl_surface::lock, vout_window_t::owner, vlc_gl_t::surface, vout_window_owner::sys, vlc_gl_Resize(), vlc_mutex_lock(), vlc_mutex_unlock(), and vlc_gl_surface::width.
vlc_gl_t* vlc_gl_surface_Create | ( | vlc_object_t * | obj, |
const vout_window_cfg_t * | cfg, | ||
struct vout_window_t **restrict | wp | ||
) |
References vlc_gl_surface::height, vout_window_cfg_t::height, vlc_gl_surface::lock, vout_window_owner::sys, unlikely, vlc_gl_Create(), vlc_gl_Resize(), vlc_gl_surface_ResizeNotify(), vlc_mutex_destroy(), vlc_mutex_init(), VLC_OPENGL, vout_window_Delete(), vout_window_New(), vlc_gl_surface::width, and vout_window_cfg_t::width.
void vlc_gl_surface_Destroy | ( | vlc_gl_t * | gl | ) |
|
static |
References vlc_gl_surface::height, vlc_gl_surface::lock, msg_Dbg, vout_window_t::owner, vout_window_owner::sys, vlc_mutex_lock(), vlc_mutex_unlock(), and vlc_gl_surface::width.
Referenced by vlc_gl_surface_Create().