VLC  2.1.0-git
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Typedefs | Enumerations | Functions
vlc_opengl.h File Reference

This file defines GL structures and functions. More...

Include dependency graph for vlc_opengl.h:

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_gl_tvlc_gl_Create (struct vout_window_t *, unsigned, const char *)
 Creates an OpenGL context (and its underlying surface).
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_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 )
static void* vlc_gl_GetProcAddress ( vlc_gl_t gl,
const char *  name 
)
inlinestatic
static int vlc_gl_Lock ( vlc_gl_t gl)
inlinestatic

< No error

References vlc_gl_t::lock, and VLC_SUCCESS.

static int vlc_gl_MakeCurrent ( vlc_gl_t gl)
inlinestatic
static void vlc_gl_Swap ( vlc_gl_t gl)
inlinestatic

References vlc_gl_t::swap.

static void vlc_gl_Unlock ( vlc_gl_t gl)
inlinestatic

References vlc_gl_t::unlock.