util-opengl.h File Reference

Go to the source code of this file.

Typedefs

typedef XID GLXPbuffer
typedef GLuint * framebuffers
typedef GLuint framebuffer
typedef GLenum attachment
typedef GLenum GLenum textarget
typedef GLenum GLenum GLuint texture
typedef GLenum GLenum GLuint GLint level

Enumerations

enum  FrameBufferType { kRenderRGBA, kSimpleRGBA }

Functions

static int __glCheck__ (const QString &loc, const char *fileName, int n)
bool get_glx_version (Display *XJ_disp, uint &major, uint &minor)
bool init_opengl (void)
int const * get_attr_cfg (FrameBufferType type)
GLXFBConfig get_fbuffer_cfg (Display *XJ_disp, int XJ_screen_num, const int *)
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 &extensions)
bool has_gl_fbuffer_object_support (const QString &extensions)
bool has_gl_fragment_program_support (const QString &extensions)
bool has_glx_video_sync_support (const QString &glx_extensions)
typedef void (APIENTRYP MYTH_GLGENFRAMEBUFFERSEXTPROC)(GLsizei n
typedef GLenum (APIENTRYP MYTH_GLCHECKFRAMEBUFFERSTATUSEXTPROC)(GLenum target)

Variables

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


Typedef Documentation

typedef XID GLXPbuffer

Definition at line 82 of file util-opengl.h.

typedef const GLuint * framebuffers

Definition at line 152 of file util-opengl.h.

typedef GLuint framebuffer

Definition at line 154 of file util-opengl.h.

typedef GLenum attachment

Definition at line 156 of file util-opengl.h.

typedef GLenum GLenum textarget

Definition at line 156 of file util-opengl.h.

typedef GLenum GLenum GLuint texture

Definition at line 156 of file util-opengl.h.

typedef GLenum GLenum GLuint GLint level

Definition at line 156 of file util-opengl.h.


Enumeration Type Documentation

Enumerator:
kRenderRGBA 
kSimpleRGBA 

Definition at line 102 of file util-opengl.h.


Function Documentation

static int __glCheck__ ( const QString &  loc,
const char *  fileName,
int  n 
) [inline, static]

Definition at line 85 of file util-opengl.h.

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

bool init_opengl ( void   ) 

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

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 &  extensions  ) 

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

Referenced by OpenGLContext::Create().

bool has_gl_fbuffer_object_support ( const QString &  extensions  ) 

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

Referenced by OpenGLContext::Create().

bool has_gl_fragment_program_support ( const QString &  extensions  ) 

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

Referenced by OpenGLContext::Create().

bool has_glx_video_sync_support ( const QString &  glx_extensions  ) 

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

Referenced by OpenGLVideoSync::TryInit().

typedef void ( APIENTRYP  MYTH_GLGENFRAMEBUFFERSEXTPROC  ) 

typedef GLenum ( APIENTRYP  MYTH_GLCHECKFRAMEBUFFERSTATUSEXTPROC  ) 


Variable Documentation

PFNGLGENPROGRAMSARBPROC gMythGLGenProgramsARB

PFNGLBINDPROGRAMARBPROC gMythGLBindProgramARB

PFNGLPROGRAMSTRINGARBPROC gMythGLProgramStringARB

PFNGLPROGRAMENVPARAMETER4FARBPROC gMythGLProgramEnvParameter4fARB

PFNGLDELETEPROGRAMSARBPROC gMythGLDeleteProgramsARB

PFNGLGETPROGRAMIVARBPROC gMythGLGetProgramivARB

MYTH_GLGENFRAMEBUFFERSEXTPROC gMythGLGenFramebuffersEXT

MYTH_GLBINDFRAMEBUFFEREXTPROC gMythGLBindFramebufferEXT

MYTH_GLFRAMEBUFFERTEXTURE2DEXTPROC gMythGLFramebufferTexture2DEXT

MYTH_GLCHECKFRAMEBUFFERSTATUSEXTPROC gMythGLCheckFramebufferStatusEXT

MYTH_GLDELETEFRAMEBUFFERSEXTPROC gMythGLDeleteFramebuffersEXT

PFNGLXGETVIDEOSYNCSGIPROC gMythGLXGetVideoSyncSGI

PFNGLXWAITVIDEOSYNCSGIPROC gMythGLXWaitVideoSyncSGI


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