VLC  2.1.0-git
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
opengl.c File Reference
Include dependency graph for opengl.c:

Functions

vlc_gl_tvlc_gl_Create (struct vout_window_t *wnd, unsigned flags, const char *name)
 Creates an OpenGL context (and its underlying surface).
void vlc_gl_Destroy (vlc_gl_t *gl)

Function Documentation

vlc_gl_t* vlc_gl_Create ( struct vout_window_t wnd,
unsigned  flags,
const char *  name 
)

Creates an OpenGL context (and its underlying surface).

Note
In most cases, you should vlc_gl_MakeCurrent() afterward.
Parameters
wndwindow to use as OpenGL surface
flagsOpenGL context type
namemodule name (or NULL for auto)
Returns
a new context, or NULL on failure

References vlc_gl_t::module, module_need, vlc_gl_t::surface, unlikely, vlc_custom_create, vlc_object_release, VLC_OPENGL, VLC_OPENGL_ES, and VLC_OPENGL_ES2.

void vlc_gl_Destroy ( vlc_gl_t gl)