OpenGLContext Class Reference

#include <openglcontext.h>

List of all members.


Detailed Description

Definition at line 28 of file openglcontext.h.


Public Member Functions

 OpenGLContext ()
 ~OpenGLContext ()
bool Create (Display *display, Window window, uint screen_num, const QSize &display_visible_size, bool visible)
void Hide (void)
void Show (void)
bool MakeCurrent (bool current)
void SwapBuffers (void)
void Flush (void)
uint GetMaxTexSize (void) const
uint GetScreenNum (void) const
uint CreateTexture (void)
bool SetupTexture (const QSize &size, uint tex, int filt)
void SetupTextureFilters (uint tex, int filt)
void DeleteTexture (uint tex)
int GetTextureType (void) const
void EnableTextures (void)
bool CreateFragmentProgram (const QString &program, uint &prog)
void DeleteFragmentProgram (uint prog)
void BindFragmentProgram (uint fp)
void InitFragmentParams (uint fp, float a, float b, float c, float d)
bool CreateFrameBuffer (uint &fb, uint tex, const QSize &size)
void DeleteFrameBuffer (uint fb)
void BindFramebuffer (uint fb)
bool IsFeatureSupported (GLFeatures feature) const
 OpenGLContext ()
 ~OpenGLContext ()
bool Create (Display *, Window, uint, const QSize &, bool)
bool MakeCurrent (bool)
void SwapBuffers (void)
void Flush (void)
uint GetMaxTexSize (void) const
uint GetScreenNum (void) const
uint CreateTexture (void)
bool SetupTexture (const QSize &, uint, int)
void SetupTextureFilters (uint, int)
void DeleteTexture (uint)
int GetTextureType (void) const
void EnableTextures (void)
bool CreateFragmentProgram (const QString &, uint &)
void DeleteFragmentProgram (uint)
void BindFragmentProgram (uint)
void InitFragmentParams (uint, float, float, float, float)
bool CreateFrameBuffer (uint &, uint, const QSize &)
void DeleteFrameBuffer (uint)
void BindFramebuffer (uint)
bool IsFeatureSupported (GLFeatures) const

Static Public Member Functions

static bool IsGLXSupported (Display *display, uint major, uint minor)
static bool IsGLXSupported (Display *, uint, uint)

Private Member Functions

bool IsGLXSupported (uint major, uint minor) const
void DeleteTextures (void)
void DeletePrograms (void)
void DeleteFrameBuffers (void)

Private Attributes

PrivateContextm_priv
Display * m_display
uint m_screen_num
uint m_major_ver
uint m_minor_ver
QString m_extensions
uint m_ext_supported
bool m_visible
uint m_max_tex_size

Constructor & Destructor Documentation

OpenGLContext::OpenGLContext (  ) 

Definition at line 39 of file openglcontext.cpp.

OpenGLContext::~OpenGLContext (  ) 

Definition at line 50 of file openglcontext.cpp.

OpenGLContext::OpenGLContext (  )  [inline]

Definition at line 95 of file openglcontext.h.

OpenGLContext::~OpenGLContext (  )  [inline]

Definition at line 96 of file openglcontext.h.


Member Function Documentation

bool OpenGLContext::Create ( Display *  display,
Window  window,
uint  screen_num,
const QSize &  display_visible_size,
bool  visible 
)

Definition at line 101 of file openglcontext.cpp.

Referenced by VideoOutputXv::InitOpenGL().

void OpenGLContext::Hide ( void   ) 

Definition at line 90 of file openglcontext.cpp.

Referenced by VideoOutputXv::DeleteBuffers().

void OpenGLContext::Show ( void   ) 

Definition at line 95 of file openglcontext.cpp.

Referenced by VideoOutputXv::InitOpenGL().

bool OpenGLContext::MakeCurrent ( bool  current  ) 

void OpenGLContext::SwapBuffers ( void   ) 

Definition at line 285 of file openglcontext.cpp.

Referenced by VideoOutputXv::Show().

void OpenGLContext::Flush ( void   ) 

Definition at line 302 of file openglcontext.cpp.

Referenced by VideoOutputXv::PrepareFrameOpenGL().

uint OpenGLContext::GetMaxTexSize ( void   )  const [inline]

Definition at line 43 of file openglcontext.h.

Referenced by OpenGLVideo::CreateVideoTexture().

uint OpenGLContext::GetScreenNum ( void   )  const [inline]

Definition at line 44 of file openglcontext.h.

uint OpenGLContext::CreateTexture ( void   ) 

bool OpenGLContext::SetupTexture ( const QSize &  size,
uint  tex,
int  filt 
)

Definition at line 336 of file openglcontext.cpp.

Referenced by OpenGLVideo::CreateVideoTexture().

void OpenGLContext::SetupTextureFilters ( uint  tex,
int  filt 
)

Definition at line 362 of file openglcontext.cpp.

Referenced by CreateFrameBuffer(), CreateTexture(), and SetupTexture().

void OpenGLContext::DeleteTexture ( uint  tex  ) 

int OpenGLContext::GetTextureType ( void   )  const

void OpenGLContext::EnableTextures ( void   ) 

Definition at line 308 of file openglcontext.cpp.

Referenced by OpenGLVideo::InitOpenGL().

bool OpenGLContext::CreateFragmentProgram ( const QString &  program,
uint prog 
)

Definition at line 410 of file openglcontext.cpp.

Referenced by OpenGLVideo::AddFragmentProgram().

void OpenGLContext::DeleteFragmentProgram ( uint  prog  ) 

Definition at line 460 of file openglcontext.cpp.

Referenced by OpenGLVideo::RemoveFilter(), and OpenGLVideo::Teardown().

void OpenGLContext::BindFragmentProgram ( uint  fp  ) 

Definition at line 479 of file openglcontext.cpp.

Referenced by OpenGLVideo::PrepareFrame().

void OpenGLContext::InitFragmentParams ( uint  fp,
float  a,
float  b,
float  c,
float  d 
)

Definition at line 484 of file openglcontext.cpp.

Referenced by OpenGLVideo::PrepareFrame().

bool OpenGLContext::CreateFrameBuffer ( uint fb,
uint  tex,
const QSize &  size 
)

Definition at line 504 of file openglcontext.cpp.

Referenced by OpenGLVideo::AddFrameBuffer().

void OpenGLContext::DeleteFrameBuffer ( uint  fb  ) 

void OpenGLContext::BindFramebuffer ( uint  fb  ) 

Definition at line 622 of file openglcontext.cpp.

Referenced by OpenGLVideo::PrepareFrame().

bool OpenGLContext::IsFeatureSupported ( GLFeatures  feature  )  const [inline]

bool OpenGLContext::IsGLXSupported ( Display *  display,
uint  major,
uint  minor 
) [static]

Definition at line 627 of file openglcontext.cpp.

Referenced by MakeCurrent(), SetFromHW(), and SwapBuffers().

bool OpenGLContext::IsGLXSupported ( uint  major,
uint  minor 
) const [inline, private]

Definition at line 68 of file openglcontext.h.

void OpenGLContext::DeleteTextures ( void   )  [private]

Definition at line 392 of file openglcontext.cpp.

Referenced by ~OpenGLContext().

void OpenGLContext::DeletePrograms ( void   )  [private]

Definition at line 491 of file openglcontext.cpp.

Referenced by ~OpenGLContext().

void OpenGLContext::DeleteFrameBuffers ( void   )  [private]

Definition at line 606 of file openglcontext.cpp.

Referenced by ~OpenGLContext().

bool OpenGLContext::Create ( Display *  ,
Window  ,
uint  ,
const QSize &  ,
bool   
) [inline]

Definition at line 98 of file openglcontext.h.

bool OpenGLContext::MakeCurrent ( bool   )  [inline]

Definition at line 100 of file openglcontext.h.

void OpenGLContext::SwapBuffers ( void   )  [inline]

Definition at line 101 of file openglcontext.h.

void OpenGLContext::Flush ( void   )  [inline]

Definition at line 102 of file openglcontext.h.

uint OpenGLContext::GetMaxTexSize ( void   )  const [inline]

Definition at line 104 of file openglcontext.h.

uint OpenGLContext::GetScreenNum ( void   )  const [inline]

Definition at line 105 of file openglcontext.h.

uint OpenGLContext::CreateTexture ( void   )  [inline]

Definition at line 107 of file openglcontext.h.

bool OpenGLContext::SetupTexture ( const QSize &  ,
uint  ,
int   
) [inline]

Definition at line 108 of file openglcontext.h.

void OpenGLContext::SetupTextureFilters ( uint  ,
int   
) [inline]

Definition at line 109 of file openglcontext.h.

void OpenGLContext::DeleteTexture ( uint   )  [inline]

Definition at line 110 of file openglcontext.h.

int OpenGLContext::GetTextureType ( void   )  const [inline]

Definition at line 111 of file openglcontext.h.

void OpenGLContext::EnableTextures ( void   )  [inline]

Definition at line 112 of file openglcontext.h.

bool OpenGLContext::CreateFragmentProgram ( const QString &  ,
uint  
) [inline]

Definition at line 114 of file openglcontext.h.

void OpenGLContext::DeleteFragmentProgram ( uint   )  [inline]

Definition at line 115 of file openglcontext.h.

void OpenGLContext::BindFragmentProgram ( uint   )  [inline]

Definition at line 116 of file openglcontext.h.

void OpenGLContext::InitFragmentParams ( uint  ,
float  ,
float  ,
float  ,
float   
) [inline]

Definition at line 117 of file openglcontext.h.

bool OpenGLContext::CreateFrameBuffer ( uint ,
uint  ,
const QSize &   
) [inline]

Definition at line 119 of file openglcontext.h.

void OpenGLContext::DeleteFrameBuffer ( uint   ) 

void OpenGLContext::BindFramebuffer ( uint   ) 

bool OpenGLContext::IsFeatureSupported ( GLFeatures   )  const [inline]

Definition at line 123 of file openglcontext.h.

static bool OpenGLContext::IsGLXSupported ( Display *  ,
uint  ,
uint   
) [inline, static]

Definition at line 125 of file openglcontext.h.


Member Data Documentation

Display* OpenGLContext::m_display [private]

Definition at line 80 of file openglcontext.h.

Referenced by Create(), Hide(), MakeCurrent(), Show(), SwapBuffers(), and ~OpenGLContext().

Definition at line 81 of file openglcontext.h.

Referenced by Create(), and GetScreenNum().

Definition at line 82 of file openglcontext.h.

Referenced by Create(), and IsGLXSupported().

Definition at line 83 of file openglcontext.h.

Referenced by Create(), and IsGLXSupported().

QString OpenGLContext::m_extensions [private]

Definition at line 84 of file openglcontext.h.

Referenced by Create().

Definition at line 85 of file openglcontext.h.

Referenced by Create(), and IsFeatureSupported().

Definition at line 86 of file openglcontext.h.

Referenced by Create(), and SwapBuffers().

Definition at line 87 of file openglcontext.h.

Referenced by Create(), and GetMaxTexSize().


The documentation for this class was generated from the following files:

Generated on Sat Dec 18 05:16:08 2010 for MythTV by  doxygen 1.5.5