util-opengl.cpp File Reference

Go to the source code of this file.

Functions

bool init_opengl (void)
bool get_glx_version (Display *XJ_disp, uint &major, uint &minor)
int const * get_attr_cfg (FrameBufferType type)
GLXFBConfig get_fbuffer_cfg (Display *XJ_disp, int XJ_screen_num, const int *attr_fbconfig)
GLXPbuffer get_pbuffer (Display *XJ_disp, GLXFBConfig glx_fbconfig, const QSize &video_dim)
Window get_gl_window (Display *XJ_disp, Window XJ_curwin, XVisualInfo *visInfo, const QSize &window_size, bool map_window)
GLXWindow get_glx_window (Display *XJ_disp, GLXFBConfig glx_fbconfig, Window gl_window, GLXContext glx_context, GLXPbuffer glx_pbuffer, const QSize &window_size)
void copy_pixels_to_texture (const unsigned char *buf, int buffer_format, const QSize &buffer_size, int texture, int texture_type)
__GLXextFuncPtr get_gl_proc_address (const QString &procName)
int get_gl_texture_rect_type (const QString &ext)
bool has_gl_fbuffer_object_support (const QString &ext)
bool has_gl_fragment_program_support (const QString &ext)
bool has_glx_video_sync_support (const QString &glx_ext)

Variables

PFNGLGENPROGRAMSARBPROC gMythGLGenProgramsARB = NULL
PFNGLBINDPROGRAMARBPROC gMythGLBindProgramARB = NULL
PFNGLPROGRAMSTRINGARBPROC gMythGLProgramStringARB = NULL
PFNGLPROGRAMENVPARAMETER4FARBPROC gMythGLProgramEnvParameter4fARB = NULL
PFNGLDELETEPROGRAMSARBPROC gMythGLDeleteProgramsARB = NULL
PFNGLGETPROGRAMIVARBPROC gMythGLGetProgramivARB = NULL
MYTH_GLGENFRAMEBUFFERSEXTPROC gMythGLGenFramebuffersEXT = NULL
MYTH_GLBINDFRAMEBUFFEREXTPROC gMythGLBindFramebufferEXT = NULL
MYTH_GLFRAMEBUFFERTEXTURE2DEXTPROC gMythGLFramebufferTexture2DEXT = NULL
MYTH_GLCHECKFRAMEBUFFERSTATUSEXTPROC gMythGLCheckFramebufferStatusEXT = NULL
MYTH_GLDELETEFRAMEBUFFERSEXTPROC gMythGLDeleteFramebuffersEXT = NULL
PFNGLXGETVIDEOSYNCSGIPROC gMythGLXGetVideoSyncSGI = NULL
PFNGLXWAITVIDEOSYNCSGIPROC gMythGLXWaitVideoSyncSGI = NULL


Function Documentation

bool init_opengl ( void   ) 

bool get_glx_version ( Display *  XJ_disp,
uint major,
uint minor 
)

int const* get_attr_cfg ( FrameBufferType  type  ) 

Definition at line 112 of file util-opengl.cpp.

Referenced by OpenGLContext::Create().

GLXFBConfig get_fbuffer_cfg ( Display *  XJ_disp,
int  XJ_screen_num,
const int *  attr_fbconfig 
)

Definition at line 151 of file util-opengl.cpp.

Referenced by OpenGLContext::Create().

GLXPbuffer get_pbuffer ( Display *  XJ_disp,
GLXFBConfig  glx_fbconfig,
const QSize &  video_dim 
)

Definition at line 188 of file util-opengl.cpp.

Window get_gl_window ( Display *  XJ_disp,
Window  XJ_curwin,
XVisualInfo *  visInfo,
const QSize &  window_size,
bool  map_window 
)

Definition at line 210 of file util-opengl.cpp.

Referenced by OpenGLContext::Create().

GLXWindow get_glx_window ( Display *  XJ_disp,
GLXFBConfig  glx_fbconfig,
Window  gl_window,
GLXContext  glx_context,
GLXPbuffer  glx_pbuffer,
const QSize &  window_size 
)

Definition at line 236 of file util-opengl.cpp.

void copy_pixels_to_texture ( const unsigned char *  buf,
int  buffer_format,
const QSize &  buffer_size,
int  texture,
int  texture_type 
)

Definition at line 270 of file util-opengl.cpp.

Referenced by OpenGLVideo::UpdateInput().

__GLXextFuncPtr get_gl_proc_address ( const QString &  procName  ) 

Definition at line 305 of file util-opengl.cpp.

Referenced by init_opengl().

int get_gl_texture_rect_type ( const QString &  ext  ) 

Definition at line 322 of file util-opengl.cpp.

Referenced by OpenGLContext::Create().

bool has_gl_fbuffer_object_support ( const QString &  ext  ) 

Definition at line 336 of file util-opengl.cpp.

Referenced by OpenGLContext::Create().

bool has_gl_fragment_program_support ( const QString &  ext  ) 

Definition at line 350 of file util-opengl.cpp.

Referenced by OpenGLContext::Create().

bool has_glx_video_sync_support ( const QString &  glx_ext  ) 

Definition at line 365 of file util-opengl.cpp.

Referenced by OpenGLVideoSync::TryInit().


Variable Documentation

PFNGLGENPROGRAMSARBPROC gMythGLGenProgramsARB = NULL

PFNGLBINDPROGRAMARBPROC gMythGLBindProgramARB = NULL

PFNGLPROGRAMSTRINGARBPROC gMythGLProgramStringARB = NULL

PFNGLPROGRAMENVPARAMETER4FARBPROC gMythGLProgramEnvParameter4fARB = NULL

PFNGLDELETEPROGRAMSARBPROC gMythGLDeleteProgramsARB = NULL

PFNGLGETPROGRAMIVARBPROC gMythGLGetProgramivARB = NULL

MYTH_GLGENFRAMEBUFFERSEXTPROC gMythGLGenFramebuffersEXT = NULL

MYTH_GLBINDFRAMEBUFFEREXTPROC gMythGLBindFramebufferEXT = NULL

MYTH_GLFRAMEBUFFERTEXTURE2DEXTPROC gMythGLFramebufferTexture2DEXT = NULL

MYTH_GLCHECKFRAMEBUFFERSTATUSEXTPROC gMythGLCheckFramebufferStatusEXT = NULL

MYTH_GLDELETEFRAMEBUFFERSEXTPROC gMythGLDeleteFramebuffersEXT = NULL

PFNGLXGETVIDEOSYNCSGIPROC gMythGLXGetVideoSyncSGI = NULL

PFNGLXWAITVIDEOSYNCSGIPROC gMythGLXWaitVideoSyncSGI = NULL


Generated on Sat Dec 18 05:15:56 2010 for MythTV by  doxygen 1.5.5