Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

glxGraphicsPipe Class Reference

#include <glxGraphicsPipe.h>

Inheritance diagram for glxGraphicsPipe:

GraphicsPipe TypedReferenceCount TypedObject ReferenceCount List of all members.

Public Member Functions

 glxGraphicsPipe (const string &display=string())
virtual ~glxGraphicsPipe ()
virtual string get_interface_name () const
INLINE Display * get_display () const
INLINE int get_screen () const
INLINE Window get_root () const
INLINE Atom get_wm_delete_window () const
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

 PT (GraphicsPipe) pipe_ const ructor()
TypeHandle get_class_type ()
void init_type ()

Protected Member Functions

virtual PT (GraphicsStateGuardian) make_gsg(const FrameBufferProperties &properties)
virtual PT (GraphicsWindow) make_window(GraphicsStateGuardian *gsg)

Private Types

typedef int ErrorHandlerFunc (Display *, XErrorEvent *)
typedef int IOErrorHandlerFunc (Display *)

Private Member Functions

XVisualInfo * choose_visual (FrameBufferProperties &properties) const
XVisualInfo * try_for_visual (int framebuffer_mode, int want_depth_bits, int want_color_bits) const

Static Private Member Functions

void install_error_handlers ()
int error_handler (Display *display, XErrorEvent *error)
int io_error_handler (Display *display)

Private Attributes

Display * _display
int _screen
Window _root
Atom _wm_protocols
Atom _wm_delete_window

Static Private Attributes

bool _error_handlers_installed = false
ErrorHandlerFunc_prev_error_handler
IOErrorHandlerFunc_prev_io_error_handler
TypeHandle _type_handle

Member Typedef Documentation

typedef int glxGraphicsPipe::ErrorHandlerFunc(Display *, XErrorEvent *) [private]
 

Definition at line 80 of file glxGraphicsPipe.h.

Referenced by install_error_handlers().

typedef int glxGraphicsPipe::IOErrorHandlerFunc(Display *) [private]
 

Definition at line 81 of file glxGraphicsPipe.h.

Referenced by install_error_handlers().


Constructor & Destructor Documentation

glxGraphicsPipe::glxGraphicsPipe const string &  display = string()  ) 
 

Definition at line 40 of file glxGraphicsPipe.cxx.

References _display, GraphicsPipe::_display_height, GraphicsPipe::_display_width, GraphicsPipe::_is_valid, _root, _screen, GraphicsPipe::_supports_fullscreen, _wm_delete_window, display_cfg, install_error_handlers(), and NULL.

glxGraphicsPipe::~glxGraphicsPipe  )  [virtual]
 

Definition at line 88 of file glxGraphicsPipe.cxx.

References _display.


Member Function Documentation

XVisualInfo * glxGraphicsPipe::choose_visual FrameBufferProperties properties  )  const [private]
 

Definition at line 181 of file glxGraphicsPipe.cxx.

References _display, FrameBufferProperties::FM_accum, FrameBufferProperties::FM_alpha, FrameBufferProperties::FM_depth, FrameBufferProperties::FM_double_buffer, FrameBufferProperties::FM_index, FrameBufferProperties::FM_multisample, FrameBufferProperties::FM_stencil, FrameBufferProperties::FM_stereo, FrameBufferProperties::get_color_bits(), FrameBufferProperties::get_depth_bits(), FrameBufferProperties::get_frame_buffer_mode(), FrameBufferProperties::has_color_bits(), FrameBufferProperties::has_depth_bits(), FrameBufferProperties::has_frame_buffer_mode(), NULL, FrameBufferProperties::set_color_bits(), FrameBufferProperties::set_depth_bits(), FrameBufferProperties::set_frame_buffer_mode(), and try_for_visual().

int glxGraphicsPipe::error_handler Display *  display,
XErrorEvent *  error
[static, private]
 

Definition at line 509 of file glxGraphicsPipe.cxx.

Referenced by install_error_handlers().

virtual TypeHandle glxGraphicsPipe::force_init_type void   )  [inline, virtual]
 

Reimplemented from GraphicsPipe.

Definition at line 98 of file glxGraphicsPipe.h.

References get_class_type(), and init_type().

TypeHandle glxGraphicsPipe::get_class_type void   )  [inline, static]
 

Reimplemented from GraphicsPipe.

Definition at line 87 of file glxGraphicsPipe.h.

References _type_handle.

Referenced by force_init_type(), get_type(), and init_libglxdisplay().

INLINE Display* glxGraphicsPipe::get_display  )  const
 

Referenced by glxGraphicsWindow::glxGraphicsWindow().

string glxGraphicsPipe::get_interface_name  )  const [virtual]
 

Implements GraphicsPipe.

Definition at line 105 of file glxGraphicsPipe.cxx.

INLINE Window glxGraphicsPipe::get_root  )  const
 

Referenced by glxGraphicsWindow::open_window(), and glxGraphicsWindow::setup_colormap().

INLINE int glxGraphicsPipe::get_screen  )  const
 

Referenced by glxGraphicsWindow::glxGraphicsWindow().

virtual TypeHandle glxGraphicsPipe::get_type void   )  const [inline, virtual]
 

Reimplemented from GraphicsPipe.

Definition at line 95 of file glxGraphicsPipe.h.

References get_class_type().

INLINE Atom glxGraphicsPipe::get_wm_delete_window  )  const
 

Referenced by glxGraphicsWindow::glxGraphicsWindow().

void glxGraphicsPipe::init_type void   )  [inline, static]
 

Reimplemented from GraphicsPipe.

Definition at line 90 of file glxGraphicsPipe.h.

References _type_handle, GraphicsPipe::get_class_type(), GraphicsPipe::init_type(), and register_type().

Referenced by force_init_type(), and init_libglxdisplay().

void glxGraphicsPipe::install_error_handlers  )  [static, private]
 

Definition at line 492 of file glxGraphicsPipe.cxx.

References _error_handlers_installed, _prev_error_handler, _prev_io_error_handler, error_handler(), ErrorHandlerFunc, io_error_handler(), and IOErrorHandlerFunc.

Referenced by glxGraphicsPipe().

int glxGraphicsPipe::io_error_handler Display *  display  )  [static, private]
 

Definition at line 528 of file glxGraphicsPipe.cxx.

Referenced by install_error_handlers().

virtual glxGraphicsPipe::PT GraphicsWindow   )  [protected, virtual]
 

Implements GraphicsPipe.

virtual glxGraphicsPipe::PT GraphicsStateGuardian   )  const [protected, virtual]
 

Reimplemented from GraphicsPipe.

glxGraphicsPipe::PT GraphicsPipe   )  const [static]
 

XVisualInfo * glxGraphicsPipe::try_for_visual int  framebuffer_mode,
int  want_depth_bits,
int  want_color_bits
const [private]
 

Definition at line 394 of file glxGraphicsPipe.cxx.

References _display, _screen, FrameBufferProperties::FM_accum, FrameBufferProperties::FM_alpha, FrameBufferProperties::FM_depth, FrameBufferProperties::FM_double_buffer, FrameBufferProperties::FM_multisample, FrameBufferProperties::FM_stencil, FrameBufferProperties::FM_stereo, n, None, and NULL.

Referenced by choose_visual().


Member Data Documentation

Display* glxGraphicsPipe::_display [private]
 

Definition at line 73 of file glxGraphicsPipe.h.

Referenced by choose_visual(), glxGraphicsPipe(), try_for_visual(), and ~glxGraphicsPipe().

bool glxGraphicsPipe::_error_handlers_installed = false [static, private]
 

Definition at line 30 of file glxGraphicsPipe.cxx.

Referenced by install_error_handlers().

glxGraphicsPipe::ErrorHandlerFunc * glxGraphicsPipe::_prev_error_handler [static, private]
 

Definition at line 31 of file glxGraphicsPipe.cxx.

Referenced by install_error_handlers().

glxGraphicsPipe::IOErrorHandlerFunc * glxGraphicsPipe::_prev_io_error_handler [static, private]
 

Definition at line 32 of file glxGraphicsPipe.cxx.

Referenced by install_error_handlers().

Window glxGraphicsPipe::_root [private]
 

Definition at line 75 of file glxGraphicsPipe.h.

Referenced by glxGraphicsPipe().

int glxGraphicsPipe::_screen [private]
 

Definition at line 74 of file glxGraphicsPipe.h.

Referenced by glxGraphicsPipe(), and try_for_visual().

TypeHandle glxGraphicsPipe::_type_handle [static, private]
 

Reimplemented from GraphicsPipe.

Definition at line 28 of file glxGraphicsPipe.cxx.

Referenced by get_class_type(), and init_type().

Atom glxGraphicsPipe::_wm_delete_window [private]
 

Definition at line 78 of file glxGraphicsPipe.h.

Referenced by glxGraphicsPipe().

Atom glxGraphicsPipe::_wm_protocols [private]
 

Definition at line 77 of file glxGraphicsPipe.h.


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 00:12:27 2003 for Panda by doxygen1.3