52 void*(*getProcAddress)(
vlc_gl_t *,
const char *);
62 VLC_API
void vlc_gl_Destroy(
vlc_gl_t *);
64 static inline
int vlc_gl_MakeCurrent(vlc_gl_t *gl)
66 return gl->makeCurrent(gl);
69 static inline void vlc_gl_ReleaseCurrent(vlc_gl_t *gl)
71 gl->releaseCurrent(gl);
74 static inline int vlc_gl_Lock(vlc_gl_t *gl)
76 return (gl->lock != NULL) ? gl->lock(gl) :
VLC_SUCCESS;
79 static inline void vlc_gl_Unlock(vlc_gl_t *gl)
81 if (gl->unlock != NULL)
85 static inline void vlc_gl_Swap(vlc_gl_t *gl)
90 static inline void *vlc_gl_GetProcAddress(vlc_gl_t *gl,
const char *name)
92 return (gl->getProcAddress != NULL) ? gl->getProcAddress(gl, name) : NULL;
#define VLC_SUCCESS
Definition: vlc_common.h:373
Definition: vlc_opengl.h:39
Definition: vlc_vout_window.h:80