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

wglGraphicsWindow Class Reference

#include <wglGraphicsWindow.h>

Inheritance diagram for wglGraphicsWindow:

WinGraphicsWindow GraphicsWindow TypedReferenceCount ClearableRegion TypedObject ReferenceCount List of all members.

Public Member Functions

 wglGraphicsWindow (GraphicsPipe *pipe, GraphicsStateGuardian *gsg)
virtual ~wglGraphicsWindow ()
virtual void make_current ()
virtual void release_gsg ()
virtual void begin_flip ()
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

TypeHandle get_class_type ()
void init_type ()

Protected Member Functions

virtual void close_window ()
virtual bool open_window ()
virtual void reconsider_fullscreen_size (DWORD &x_size, DWORD &y_size, DWORD &bitdepth)

Private Member Functions

void setup_colormap (const PIXELFORMATDESCRIPTOR &pixelformat)

Private Attributes

HDC _hdc
HPALETTE _colormap

Static Private Attributes

TypeHandle _type_handle

Constructor & Destructor Documentation

wglGraphicsWindow::wglGraphicsWindow GraphicsPipe pipe,
GraphicsStateGuardian gsg
 

Definition at line 132 of file wglGraphicsWindow.cxx.

References _hdc.

wglGraphicsWindow::~wglGraphicsWindow  )  [virtual]
 

Definition at line 144 of file wglGraphicsWindow.cxx.


Member Function Documentation

void wglGraphicsWindow::begin_flip  )  [virtual]
 

Reimplemented from WinGraphicsWindow.

Definition at line 197 of file wglGraphicsWindow.cxx.

References _hdc, make_current(), and NULL.

void wglGraphicsWindow::close_window  )  [protected, virtual]
 

Reimplemented from WinGraphicsWindow.

Definition at line 212 of file wglGraphicsWindow.cxx.

References _hdc, WinGraphicsWindow::_hWnd, and WinGraphicsWindow::close_window().

Referenced by open_window().

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

Reimplemented from WinGraphicsWindow.

Definition at line 68 of file wglGraphicsWindow.h.

References WinGraphicsWindow::get_class_type(), and WinGraphicsWindow::init_type().

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

Reimplemented from WinGraphicsWindow.

Definition at line 57 of file wglGraphicsWindow.h.

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

Reimplemented from WinGraphicsWindow.

Definition at line 65 of file wglGraphicsWindow.h.

References WinGraphicsWindow::get_class_type().

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

Reimplemented from WinGraphicsWindow.

Definition at line 60 of file wglGraphicsWindow.h.

References WinGraphicsWindow::get_class_type(), WinGraphicsWindow::init_type(), and register_type().

Referenced by init_libwgldisplay().

void wglGraphicsWindow::make_current  )  [virtual]
 

Reimplemented from GraphicsWindow.

Definition at line 155 of file wglGraphicsWindow.cxx.

References _hdc, DCAST_INTO_V, wglGraphicsStateGuardian::get_context(), and GraphicsStateGuardian::reset_if_new().

Referenced by begin_flip().

bool wglGraphicsWindow::open_window  )  [protected, virtual]
 

Reimplemented from WinGraphicsWindow.

Definition at line 226 of file wglGraphicsWindow.cxx.

References _hdc, WinGraphicsWindow::_hWnd, close_window(), DCAST_INTO_R, wglGraphicsStateGuardian::get_pfnum(), WinGraphicsWindow::open_window(), and setup_colormap().

void wglGraphicsWindow::reconsider_fullscreen_size DWORD &  x_size,
DWORD &  y_size,
DWORD &  bitdepth
[protected, virtual]
 

Reimplemented from WinGraphicsWindow.

Definition at line 279 of file wglGraphicsWindow.cxx.

References GetAvailVidMem(), and gl_do_vidmemsize_check.

void wglGraphicsWindow::release_gsg  )  [virtual]
 

Reimplemented from GraphicsWindow.

Definition at line 177 of file wglGraphicsWindow.cxx.

References _hdc, NULL, and GraphicsWindow::release_gsg().

void wglGraphicsWindow::setup_colormap const PIXELFORMATDESCRIPTOR &  pixelformat  )  [private]
 

Definition at line 312 of file wglGraphicsWindow.cxx.

References _colormap, _hdc, and n.

Referenced by open_window().


Member Data Documentation

HPALETTE wglGraphicsWindow::_colormap [private]
 

Definition at line 54 of file wglGraphicsWindow.h.

Referenced by setup_colormap().

HDC wglGraphicsWindow::_hdc [private]
 

Definition at line 53 of file wglGraphicsWindow.h.

Referenced by begin_flip(), close_window(), make_current(), open_window(), release_gsg(), setup_colormap(), and wglGraphicsWindow().

TypeHandle wglGraphicsWindow::_type_handle [static, private]
 

Reimplemented from WinGraphicsWindow.

Definition at line 28 of file wglGraphicsWindow.cxx.


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