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

panda/src/display/graphicsThreadingModel.h

Go to the documentation of this file.
00001 // Filename: graphicsThreadingModel.h
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 #ifndef GRAPHICSTHREADINGMODEL_H
00020 #define GRAPHICSTHREADINGMODEL_H
00021 
00022 #include "pandabase.h"
00023 
00024 ////////////////////////////////////////////////////////////////////
00025 //       Class : GraphicsThreadingModel
00026 // Description : This represents the user's specification of how a
00027 //               particular frame is handled by the various threads.
00028 ////////////////////////////////////////////////////////////////////
00029 class EXPCL_PANDA GraphicsThreadingModel {
00030 PUBLISHED:
00031   GraphicsThreadingModel(const string &model = string());
00032   INLINE GraphicsThreadingModel(const GraphicsThreadingModel &copy);
00033   INLINE void operator = (const GraphicsThreadingModel &copy);
00034   
00035   string get_model() const;
00036   INLINE const string &get_cull_name() const;
00037   INLINE const string &get_draw_name() const;
00038   INLINE bool get_cull_sorting() const;
00039  
00040   INLINE bool is_single_threaded() const;
00041   INLINE bool is_default() const;
00042   INLINE void output(ostream &out) const;
00043 
00044 private:
00045   string _cull_name;
00046   string _draw_name;
00047   bool _cull_sorting;
00048 };
00049 
00050 INLINE ostream &operator << (ostream &out, const GraphicsThreadingModel &threading_model);
00051 
00052 #include "graphicsThreadingModel.I"
00053 
00054 #endif

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