VLC
4.0.0-dev
|
This file defines GL structures and functions. More...
Go to the source code of this file.
Data Structures | |
struct | vlc_gl_t |
Typedefs | |
typedef struct vlc_gl_t | vlc_gl_t |
A VLC GL context (and its underlying surface) More... | |
Enumerations | |
enum | { VLC_OPENGL, VLC_OPENGL_ES2 } |
Functions | |
vlc_gl_t * | vlc_gl_Create (const struct vout_display_cfg *cfg, unsigned flags, const char *name) |
Creates an OpenGL context (and its underlying surface). More... | |
void | vlc_gl_Release (vlc_gl_t *) |
void | vlc_gl_Hold (vlc_gl_t *) |
static int | vlc_gl_MakeCurrent (vlc_gl_t *gl) |
static void | vlc_gl_ReleaseCurrent (vlc_gl_t *gl) |
static void | vlc_gl_Resize (vlc_gl_t *gl, unsigned w, unsigned h) |
static void | vlc_gl_Swap (vlc_gl_t *gl) |
static void * | vlc_gl_GetProcAddress (vlc_gl_t *gl, const char *name) |
vlc_gl_t * | vlc_gl_surface_Create (vlc_object_t *, const struct vout_window_cfg_t *, struct vout_window_t **) |
bool | vlc_gl_surface_CheckSize (vlc_gl_t *, unsigned *w, unsigned *h) |
void | vlc_gl_surface_Destroy (vlc_gl_t *) |
static bool | vlc_gl_StrHasToken (const char *apis, const char *api) |
This file defines GL structures and functions.
vlc_gl_t* vlc_gl_Create | ( | const struct vout_display_cfg * | cfg, |
unsigned | flags, | ||
const char * | name | ||
) |
Creates an OpenGL context (and its underlying surface).
cfg | initial configuration (including window to use as OpenGL surface) |
flags | OpenGL context type |
name | module name (or NULL for auto) |
|
inlinestatic |
void vlc_gl_Hold | ( | vlc_gl_t * | ) |
References vlc_gl_priv_t::rc, and vlc_atomic_rc_inc().
|
inlinestatic |
References vlc_gl_t::makeCurrent.
void vlc_gl_Release | ( | vlc_gl_t * | ) |
References vlc_gl_t::destroy, vlc_gl_priv_t::rc, vlc_atomic_rc_dec(), VLC_OBJECT, vlc_object_delete, and vlc_objres_clear().
Referenced by vlc_gl_surface_Destroy().
|
inlinestatic |
References vlc_gl_t::releaseCurrent.
|
inlinestatic |
References vlc_gl_t::resize.
Referenced by vlc_gl_surface_CheckSize().
|
inlinestatic |
bool vlc_gl_surface_CheckSize | ( | vlc_gl_t * | , |
unsigned * | w, | ||
unsigned * | h | ||
) |
Referenced by vlc_gl_GetProcAddress().
vlc_gl_t* vlc_gl_surface_Create | ( | vlc_object_t * | , |
const struct vout_window_cfg_t * | , | ||
struct vout_window_t ** | |||
) |
Referenced by vlc_gl_GetProcAddress().
void vlc_gl_surface_Destroy | ( | vlc_gl_t * | ) |
References vout_window_t::owner, vlc_gl_t::surface, vout_window_owner::sys, vlc_gl_Release(), vout_window_Delete(), and vout_window_Disable().
Referenced by vlc_gl_GetProcAddress().
|
inlinestatic |
References vlc_gl_t::swap.