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

panda/src/wgldisplay/wglGraphicsStateGuardian.I

Go to the documentation of this file.
00001 // Filename: wglGraphicsStateGuardian.I
00002 // Created by:  drose (27Jan03)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 ////////////////////////////////////////////////////////////////////
00020 //     Function: wglGraphicsStateGuardian::get_pfnum
00021 //       Access: Public
00022 //  Description: Returns the pixel format number chosen for windows
00023 //               that use this context.
00024 ////////////////////////////////////////////////////////////////////
00025 INLINE int wglGraphicsStateGuardian::
00026 get_pfnum() const {
00027   return _pfnum;
00028 }
00029 
00030 ////////////////////////////////////////////////////////////////////
00031 //     Function: wglGraphicsStateGuardian::get_context
00032 //       Access: Public
00033 //  Description: Returns the GL context associated with the GSG.  If
00034 //               the context has not yet been created, this creates a
00035 //               suitable context for rendering to the indicated
00036 //               window.  This means that this method may only be
00037 //               called from within the draw thread.
00038 ////////////////////////////////////////////////////////////////////
00039 INLINE HGLRC wglGraphicsStateGuardian::
00040 get_context(HDC hdc) {
00041   if (!_made_context) {
00042     make_context(hdc);
00043   }
00044   return _context;
00045 }

Generated on Fri May 2 00:44:44 2003 for Panda by doxygen1.3