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

panda/src/framework/windowFramework.I

Go to the documentation of this file.
00001 // Filename: windowFramework.I
00002 // Created by:  drose (02Apr02)
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: WindowFramework::get_panda_framework
00022 //       Access: Public
00023 //  Description: Returns a pointer to the associated PandaFramework
00024 //               object.
00025 ////////////////////////////////////////////////////////////////////
00026 INLINE PandaFramework *WindowFramework::
00027 get_panda_framework() const {
00028   return _panda_framework;
00029 }
00030 
00031 ////////////////////////////////////////////////////////////////////
00032 //     Function: WindowFramework::get_graphics_window
00033 //       Access: Public
00034 //  Description: Returns a pointer to the underlying GraphicsWindow
00035 //               object.
00036 ////////////////////////////////////////////////////////////////////
00037 INLINE GraphicsWindow *WindowFramework::
00038 get_graphics_window() const {
00039   return _window;
00040 }
00041 
00042 ////////////////////////////////////////////////////////////////////
00043 //     Function: WindowFramework::get_num_cameras
00044 //       Access: Public
00045 //  Description: Returns the number of 3-d cameras associated with the
00046 //               window.  A window usually has only one camera, but it
00047 //               may have multiple cameras if there are multiple
00048 //               display regions within the window.
00049 ////////////////////////////////////////////////////////////////////
00050 INLINE int WindowFramework::
00051 get_num_cameras() const {
00052   return _cameras.size();
00053 }
00054 
00055 ////////////////////////////////////////////////////////////////////
00056 //     Function: WindowFramework::get_camera
00057 //       Access: Public
00058 //  Description: Returns the nth camera associated with the window.
00059 ////////////////////////////////////////////////////////////////////
00060 INLINE Camera *WindowFramework::
00061 get_camera(int n) const {
00062   nassertr(n >= 0 && n < (int)_cameras.size(), NULL);
00063   return _cameras[n];
00064 }
00065 
00066 ////////////////////////////////////////////////////////////////////
00067 //     Function: WindowFramework::get_wireframe
00068 //       Access: Public
00069 //  Description: Returns the current state of the wireframe flag.
00070 ////////////////////////////////////////////////////////////////////
00071 INLINE bool WindowFramework::
00072 get_wireframe() const {
00073   return _wireframe_enabled;
00074 }
00075 
00076 ////////////////////////////////////////////////////////////////////
00077 //     Function: WindowFramework::get_texture
00078 //       Access: Public
00079 //  Description: Returns the current state of the texture flag.
00080 ////////////////////////////////////////////////////////////////////
00081 INLINE bool WindowFramework::
00082 get_texture() const {
00083   return _texture_enabled;
00084 }
00085 
00086 ////////////////////////////////////////////////////////////////////
00087 //     Function: WindowFramework::get_two_sided
00088 //       Access: Public
00089 //  Description: Returns the current state of the two_sided flag.
00090 ////////////////////////////////////////////////////////////////////
00091 INLINE bool WindowFramework::
00092 get_two_sided() const {
00093   return _two_sided_enabled;
00094 }
00095 
00096 ////////////////////////////////////////////////////////////////////
00097 //     Function: WindowFramework::get_one_sided_reverse
00098 //       Access: Public
00099 //  Description: Returns the current state of the one_sided_reverse flag.
00100 ////////////////////////////////////////////////////////////////////
00101 INLINE bool WindowFramework::
00102 get_one_sided_reverse() const {
00103   return _one_sided_reverse_enabled;
00104 }
00105 
00106 ////////////////////////////////////////////////////////////////////
00107 //     Function: WindowFramework::get_lighting
00108 //       Access: Public
00109 //  Description: Returns the current state of the lighting flag.
00110 ////////////////////////////////////////////////////////////////////
00111 INLINE bool WindowFramework::
00112 get_lighting() const {
00113   return _lighting_enabled;
00114 }
00115 
00116 ////////////////////////////////////////////////////////////////////
00117 //     Function: WindowFramework::get_background_type
00118 //       Access: Public
00119 //  Description: Returns the current background type setting.
00120 ////////////////////////////////////////////////////////////////////
00121 INLINE WindowFramework::BackgroundType WindowFramework::
00122 get_background_type() const {
00123   return _background_type;
00124 }

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