Data Structures | Typedefs | Enumerations | Functions

vlc_opengl.h File Reference

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).

Enumerations

enum  { VLC_OPENGL, VLC_OPENGL_ES, VLC_OPENGL_ES2 }

Functions

VLC_API vlc_gl_tvlc_gl_Create (struct vout_window_t *, unsigned, const char *) VLC_USED
 Creates an OpenGL context (and its underlying surface).
VLC_API void vlc_gl_Destroy (vlc_gl_t *)
static int vlc_gl_MakeCurrent (vlc_gl_t *gl)
static int vlc_gl_Lock (vlc_gl_t *gl)
static void vlc_gl_Unlock (vlc_gl_t *gl)
static void vlc_gl_Swap (vlc_gl_t *gl)
static void * vlc_gl_GetProcAddress (vlc_gl_t *gl, const char *name)

Detailed Description

This file defines GL structures and functions.


Typedef Documentation

typedef struct vlc_gl_t vlc_gl_t

A VLC GL context (and its underlying surface).


Enumeration Type Documentation

anonymous enum
Enumerator:
VLC_OPENGL 
VLC_OPENGL_ES 
VLC_OPENGL_ES2 

Function Documentation

VLC_API 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:
wnd window to use as OpenGL surface
flags OpenGL context type
name module 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.

VLC_API void vlc_gl_Destroy ( vlc_gl_t  ) 
static void* vlc_gl_GetProcAddress ( vlc_gl_t gl,
const char *  name 
) [inline, static]
static int vlc_gl_Lock ( vlc_gl_t gl  )  [inline, static]

References vlc_gl_t::lock.

static int vlc_gl_MakeCurrent ( vlc_gl_t gl  )  [inline, static]
static void vlc_gl_Swap ( vlc_gl_t gl  )  [inline, static]

References vlc_gl_t::swap.

static void vlc_gl_Unlock ( vlc_gl_t gl  )  [inline, static]

References vlc_gl_t::unlock.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines