Panda3D
 All Classes Functions Variables Enumerations
graphicsThreadingModel.h
1 // Filename: graphicsThreadingModel.h
2 // Created by: drose (27Jan03)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef GRAPHICSTHREADINGMODEL_H
16 #define GRAPHICSTHREADINGMODEL_H
17 
18 #include "pandabase.h"
19 
20 ////////////////////////////////////////////////////////////////////
21 // Class : GraphicsThreadingModel
22 // Description : This represents the user's specification of how a
23 // particular frame is handled by the various threads.
24 ////////////////////////////////////////////////////////////////////
25 class EXPCL_PANDA_DISPLAY GraphicsThreadingModel {
26 PUBLISHED:
27  GraphicsThreadingModel(const string &model = string());
29  INLINE void operator = (const GraphicsThreadingModel &copy);
30 
31  string get_model() const;
32  INLINE const string &get_cull_name() const;
33  INLINE void set_cull_name(const string &cull_name);
34  INLINE int get_cull_stage() const;
35 
36  INLINE const string &get_draw_name() const;
37  INLINE void set_draw_name(const string &cull_name);
38  INLINE int get_draw_stage() const;
39 
40  INLINE bool get_cull_sorting() const;
41  INLINE void set_cull_sorting(bool cull_sorting);
42 
43  INLINE bool is_single_threaded() const;
44  INLINE bool is_default() const;
45  INLINE void output(ostream &out) const;
46 
47 private:
48  void update_stages();
49 
50 private:
51  string _cull_name;
52  int _cull_stage;
53  string _draw_name;
54  int _draw_stage;
55  bool _cull_sorting;
56 };
57 
58 INLINE ostream &operator << (ostream &out, const GraphicsThreadingModel &threading_model);
59 
60 #include "graphicsThreadingModel.I"
61 
62 #endif
This represents the user&#39;s specification of how a particular frame is handled by the various threads...