NCBI C++ ToolKit
Public Member Functions | Private Attributes
CGlOsContext Class Reference

Search Toolkit Book for CGlOsContext

#include <gui/opengl/mesa/gloscontext.hpp>

+ Inheritance diagram for CGlOsContext:
+ Collaboration diagram for CGlOsContext:

List of all members.

Public Member Functions

 CGlOsContext (size_t width, size_t height, unsigned stencilBits=0)
virtual ~CGlOsContext ()
bool MakeCurrent (void)
bool MakeCurrent (size_t width, size_t height)
void GetMaximumBufferSize (GLint &max_width, GLint &max_height)
const CImageGetBuffer (void) const
CImageSetBuffer (void)
void Resize (size_t width, size_t height)
 Resize frame buffer size.

Private Attributes

CRef< CImagem_Image
OSMesaContext m_Ctx

Detailed Description

Definition at line 73 of file gloscontext.hpp.


Constructor & Destructor Documentation

CGlOsContext::CGlOsContext ( size_t  width,
size_t  height,
unsigned  stencilBits = 0 
)

Definition at line 42 of file gloscontext.cpp.

References Error(), LOG_POST, and m_Ctx.

Definition at line 61 of file gloscontext.cpp.

References m_Ctx.


Member Function Documentation

const CImage & CGlOsContext::GetBuffer ( void  ) const
void CGlOsContext::GetMaximumBufferSize ( GLint &  max_width,
GLint &  max_height 
)

Definition at line 110 of file gloscontext.cpp.

bool CGlOsContext::MakeCurrent ( size_t  width,
size_t  height 
)
void CGlOsContext::Resize ( size_t  width,
size_t  height 
)

Resize frame buffer size.

Definition at line 129 of file gloscontext.cpp.

References m_Image, and CRef< C, Locker >::Reset().

Definition at line 124 of file gloscontext.cpp.

References m_Image.

Referenced by CGlCgiImageApplication::ProcessRequest(), and CBlastHitMatrix::x_RenderImage().


Member Data Documentation

OSMesaContext CGlOsContext::m_Ctx [private]

Definition at line 103 of file gloscontext.hpp.

Referenced by CGlOsContext(), MakeCurrent(), and ~CGlOsContext().

Definition at line 100 of file gloscontext.hpp.

Referenced by GetBuffer(), MakeCurrent(), Resize(), and SetBuffer().


The documentation for this class was generated from the following files:
Modified on Wed May 06 12:01:39 2015 by modify_doxy.py rev. 426318