00001 // Filename: hardwareChannel.cxx 00002 // Created by: mike (09Jan97) 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 #include "hardwareChannel.h" 00020 #include "config_display.h" 00021 00022 //////////////////////////////////////////////////////////////////// 00023 // Static variables 00024 //////////////////////////////////////////////////////////////////// 00025 TypeHandle HardwareChannel::_type_handle; 00026 00027 //////////////////////////////////////////////////////////////////// 00028 // Function: HardwareChannel::Constructor 00029 // Access: Public 00030 // Description: 00031 //////////////////////////////////////////////////////////////////// 00032 HardwareChannel:: 00033 HardwareChannel( GraphicsWindow* window ) : 00034 GraphicsChannel( window ) { 00035 _id = 0; 00036 _xorg = 0; 00037 _yorg = 0; 00038 _xsize = 0; 00039 _ysize = 0; 00040 00041 // Why do we do this? 00042 set_active(false); 00043 } 00044 00045 //////////////////////////////////////////////////////////////////// 00046 // Function: HardwareChannel::Destructor 00047 // Access: Public 00048 // Description: 00049 //////////////////////////////////////////////////////////////////// 00050 HardwareChannel:: 00051 ~HardwareChannel(void) { 00052 return; 00053 } 00054 00055 //////////////////////////////////////////////////////////////////// 00056 // Function: HardwareChannel::window_resized 00057 // Access: Public, Virtual 00058 // Description: This is called whenever the parent window has been 00059 // resized; it should do whatever needs to be done to 00060 // adjust the channel to account for it. 00061 //////////////////////////////////////////////////////////////////// 00062 void HardwareChannel:: 00063 window_resized(int, int) { 00064 // A HardwareChannel ignores window resize messages. 00065 }