Panda3D

graphicsThreadingModel.h

00001 // Filename: graphicsThreadingModel.h
00002 // Created by:  drose (27Jan03)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #ifndef GRAPHICSTHREADINGMODEL_H
00016 #define GRAPHICSTHREADINGMODEL_H
00017 
00018 #include "pandabase.h"
00019 
00020 ////////////////////////////////////////////////////////////////////
00021 //       Class : GraphicsThreadingModel
00022 // Description : This represents the user's specification of how a
00023 //               particular frame is handled by the various threads.
00024 ////////////////////////////////////////////////////////////////////
00025 class EXPCL_PANDA_DISPLAY GraphicsThreadingModel {
00026 PUBLISHED:
00027   GraphicsThreadingModel(const string &model = string());
00028   INLINE GraphicsThreadingModel(const GraphicsThreadingModel &copy);
00029   INLINE void operator = (const GraphicsThreadingModel &copy);
00030   
00031   string get_model() const;
00032   INLINE const string &get_cull_name() const;
00033   INLINE void set_cull_name(const string &cull_name);
00034   INLINE int get_cull_stage() const;
00035 
00036   INLINE const string &get_draw_name() const;
00037   INLINE void set_draw_name(const string &cull_name);
00038   INLINE int get_draw_stage() const;
00039 
00040   INLINE bool get_cull_sorting() const;
00041   INLINE void set_cull_sorting(bool cull_sorting);
00042  
00043   INLINE bool is_single_threaded() const;
00044   INLINE bool is_default() const;
00045   INLINE void output(ostream &out) const;
00046 
00047 private:
00048   void update_stages();
00049 
00050 private:
00051   string _cull_name;
00052   int _cull_stage;
00053   string _draw_name;
00054   int _draw_stage;
00055   bool _cull_sorting;
00056 };
00057 
00058 INLINE ostream &operator << (ostream &out, const GraphicsThreadingModel &threading_model);
00059 
00060 #include "graphicsThreadingModel.I"
00061 
00062 #endif
 All Classes Functions Variables Enumerations