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

panda/src/display/displayRegion.I

Go to the documentation of this file.
00001 // Filename: displayRegion.I
00002 // Created by:  frang (07Mar99)
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 ////////////////////////////////////////////////////////////////////
00021 //     Function: DisplayRegion::is_active
00022 //       Access: Published
00023 //  Description: Returns the active flag associated with the
00024 //               DisplayRegion.
00025 ////////////////////////////////////////////////////////////////////
00026 INLINE bool DisplayRegion::
00027 is_active() const {
00028   return _active;
00029 }
00030 
00031 ////////////////////////////////////////////////////////////////////
00032 //     Function: DisplayRegion::do_compute_pixels
00033 //       Access: Private
00034 //  Description: The private implementation of compute_pixels, this
00035 //               assumes that we already have the lock.
00036 ////////////////////////////////////////////////////////////////////
00037 INLINE void DisplayRegion::
00038 do_compute_pixels(int x_size, int y_size) {
00039   _pl = int((_l * x_size) + 0.5);
00040   _pr = int((_r * x_size) + 0.5);
00041   _pb = int((_b * y_size) + 0.5);
00042   _pt = int((_t * y_size) + 0.5);
00043 }
00044 
00045 
00046 INLINE ostream &operator << (ostream &out, const DisplayRegion &dr) {
00047   dr.output(out);
00048   return out;
00049 }

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